mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
fix: Update Umami analytics script condition
This commit is contained in:
parent
96be9b767b
commit
18892a2b74
@ -1,7 +1,7 @@
|
||||
{{- $umami := .Site.Params.Analytics.Umami -}}
|
||||
{{- if $umami -}}
|
||||
{{- $host := default "https://cloud.umami.is" $umami.Host -}}
|
||||
{{- if and (not $umami.Disabled) ($umami.SiteId) -}}
|
||||
{{- if and ($umami.Enabled) ($umami.SiteId) -}}
|
||||
<script defer src="{{ $host }}/script.js" data-website-id="{{ $umami.SiteId }}"></script>
|
||||
|
||||
{{- if not .IsHome -}}
|
||||
|
Loading…
Reference in New Issue
Block a user