Add support for plausible.io
This commit is contained in:
parent
959421da93
commit
4ba151d71b
2 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||||
#
|
#
|
||||||
|
|
|
@ -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}}
|
Loading…
Add table
Add a link
Reference in a new issue