Adapt IsServer check revised in hugo v0.120.0

This commit is contained in:
mark
2023-10-31 11:00:01 +01:00
parent 678b9502ff
commit 4ac787bef0
3 changed files with 3 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
{{- end -}}
{{- $pc := .Site.Config.Privacy.GoogleAnalytics -}}
{{- if (and (not .Site.IsServer) (not $pc.Disable)) -}}
{{- if (and (not hugo.IsServer) (not $pc.Disable)) -}}
{{ with .Site.Config.Services.GoogleAnalytics.ID -}}
{{ if hasPrefix . "G-"}}
{{ template "__ga_js_set_doNotTrack" $ }}