add support for Umami analytics

This commit is contained in:
Marten Seemann
2024-03-21 18:51:51 +10:00
parent 741a640b1a
commit 430a25fbf9
2 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,11 @@
{{ partial "google-analytics.html" . }}
{{- end }}
<!-- Umami -->
{{- if and hugo.IsProduction .Site.Params.umami.serverURL .Site.Params.umami.id }}
{{ partial "umami.html" . }}
{{- end }}
<script>
/* Initialize light/dark mode */