Add support for plausible.io

This commit is contained in:
Jonathan Bennetts 2023-03-02 16:09:48 +00:00
parent 959421da93
commit 4ba151d71b
2 changed files with 8 additions and 0 deletions

View file

@ -106,6 +106,9 @@ disableHugoGeneratorInject = false
# #
justifyContent = false # Set "text-align: justify" to .post-content. justifyContent = false # Set "text-align: justify" to .post-content.
# Integrate Plausible.io
# plausible = 'test.com'
# Custom footer # Custom footer
# If you want, you can easily override the default footer with your own content. # If you want, you can easily override the default footer with your own content.
# #

View file

@ -70,3 +70,8 @@
{{- if .Site.GoogleAnalytics }} {{- if .Site.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }} {{ template "_internal/google_analytics.html" . }}
{{- end}} {{- end}}
<!-- Plausible.io -->
{{- if $.Site.Params.plausible }}
<script defer data-domain="{{ .Site.Params.plausible }}" src="https://plausible.io/js/script.js"></script>
{{- end}}