integrate umami

This commit is contained in:
CDN 2023-05-06 08:27:28 +08:00
parent 11af0db9a2
commit 677808fa3d
Signed by: cdn0x12
GPG key ID: CF7D420E4A155266

View file

@ -26,6 +26,12 @@
<link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}"> <link rel="alternate" hreflang="{{ .Language.Lang }}" href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
{{ end }} {{ end }}
{{ end }} {{ end }}
<!-- Umami Analytics -->
{{ if eq .Site.Params.analytics.provider "umami" }}
{{ with .Site.Params.analytics.umami }}
<script async src="{{ .server }}/script.js" data-website-id="{{ .websiteID }}"></script>
{{ end }}
{{ end }}
</head> </head>
<script> <script>
// default to system color scheme. // default to system color scheme.