From e3f3d2278dd11f7ae47ea300699afec85751f7e3 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Thu, 2 Mar 2023 16:21:48 +0000 Subject: [PATCH] Updated to support self hosted instances --- exampleSite/config.toml | 3 ++- layouts/partials/head.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 8c05f41..0eb6fcb 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -107,7 +107,8 @@ disableHugoGeneratorInject = false justifyContent = false # Set "text-align: justify" to .post-content. # Integrate Plausible.io - # plausible = 'test.com' + # plausibleDataDomain = 'test.com' + # plausibleScriptSource = 'https://plausible.io/js/script.js' # Custom footer # If you want, you can easily override the default footer with your own content. diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 91a712d..ff7b9b6 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -72,6 +72,6 @@ {{- end}} -{{- if $.Site.Params.plausible }} - +{{- if $.Site.Params.plausibleDataDomain }} + {{- end}} \ No newline at end of file