Updated to support self hosted instances

This commit is contained in:
Jonathan Bennetts 2023-03-02 16:21:48 +00:00
parent 4ba151d71b
commit e3f3d2278d
2 changed files with 4 additions and 3 deletions

View file

@ -107,7 +107,8 @@ disableHugoGeneratorInject = false
justifyContent = false # Set "text-align: justify" to .post-content. justifyContent = false # Set "text-align: justify" to .post-content.
# Integrate Plausible.io # Integrate Plausible.io
# plausible = 'test.com' # plausibleDataDomain = 'test.com'
# plausibleScriptSource = 'https://plausible.io/js/script.js'
# 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

@ -72,6 +72,6 @@
{{- end}} {{- end}}
<!-- Plausible.io --> <!-- Plausible.io -->
{{- if $.Site.Params.plausible }} {{- if $.Site.Params.plausibleDataDomain }}
<script defer data-domain="{{ .Site.Params.plausible }}" src="https://plausible.io/js/script.js"></script> <script defer data-domain="{{ .Site.Params.plausibleDataDomain }}" src="{{ .Site.Params.plausibleScriptSource }}"></script>
{{- end}} {{- end}}