Add support for plausible analytics

This commit is contained in:
Danila Fedorin 2023-12-30 13:12:01 -08:00
parent 098767e766
commit e82879434e
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@
onload="renderMathInElement(document.body);"></script>
{{ 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>
</head>