Add support for plausible analytics

This commit is contained in:
Danila Fedorin 2023-12-30 13:12:01 -08:00
parent 098767e766
commit e82879434e

View File

@ -34,6 +34,10 @@
onload="renderMathInElement(document.body);"></script> onload="renderMathInElement(document.body);"></script>
{{ end }} {{ end }}
{{ with .Site.Params.plausibleAnalyticsDomain }}
<!-- Plausible analytics, because log parsing is not working all that well. -->
<script defer data-domain="{{ . }}" src="https://plausible.io/js/script.js"></script>
{{ end }}
<title>{{ .Title }}</title> <title>{{ .Title }}</title>
</head> </head>