From 4ba151d71bae34bf4db1baa19ede1353242a434f Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Thu, 2 Mar 2023 16:09:48 +0000 Subject: [PATCH 1/3] Add support for plausible.io --- exampleSite/config.toml | 3 +++ layouts/partials/head.html | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index afec38b..8c05f41 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -106,6 +106,9 @@ disableHugoGeneratorInject = false # justifyContent = false # Set "text-align: justify" to .post-content. + # Integrate Plausible.io + # plausible = 'test.com' + # 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 d471874..91a712d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -70,3 +70,8 @@ {{- if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{- end}} + + +{{- if $.Site.Params.plausible }} + +{{- end}} \ No newline at end of file From d392a19f21b605854d7cc457c9127bdeefb0038e Mon Sep 17 00:00:00 2001 From: Jon Date: Thu, 2 Mar 2023 16:12:10 +0000 Subject: [PATCH 2/3] Add support for plausible.io (#1) --- exampleSite/config.toml | 3 +++ layouts/partials/head.html | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index afec38b..8c05f41 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -106,6 +106,9 @@ disableHugoGeneratorInject = false # justifyContent = false # Set "text-align: justify" to .post-content. + # Integrate Plausible.io + # plausible = 'test.com' + # 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 d471874..91a712d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -70,3 +70,8 @@ {{- if .Site.GoogleAnalytics }} {{ template "_internal/google_analytics.html" . }} {{- end}} + + +{{- if $.Site.Params.plausible }} + +{{- end}} \ No newline at end of file From e3f3d2278dd11f7ae47ea300699afec85751f7e3 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Thu, 2 Mar 2023 16:21:48 +0000 Subject: [PATCH 3/3] 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