Merge pull request #411 from Joffcom/add-plausible-support

Add support for plausible.io
This commit is contained in:
Djordje Atlialp 2023-04-02 19:39:27 +02:00 committed by GitHub
commit fc86dda709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -106,6 +106,10 @@ disableHugoGeneratorInject = false
#
justifyContent = false # Set "text-align: justify" to .post-content.
# Integrate Plausible.io
# 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.
#

View file

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