diff --git a/assets/js/analytics.js b/assets/js/analytics.js index 9508190c..20c8362d 100644 --- a/assets/js/analytics.js +++ b/assets/js/analytics.js @@ -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" $ }} diff --git a/layouts/partials/assets/navbar.html b/layouts/partials/assets/navbar.html index 975bc518..e80573f0 100644 --- a/layouts/partials/assets/navbar.html +++ b/layouts/partials/assets/navbar.html @@ -68,7 +68,7 @@ {{- range $index, $item := $list -}} {{- $active := eq $item.label $version -}} {{- $disabled := false -}} - {{- if site.IsServer }} + {{- if hugo.IsServer }} {{- $disabled = and $item.redirect (gt (len $item.redirect) 0) -}} {{- end -}} {{ if $item.url }} diff --git a/layouts/partials/footer/scripts.html b/layouts/partials/footer/scripts.html index 4062dc98..72515ef7 100644 --- a/layouts/partials/footer/scripts.html +++ b/layouts/partials/footer/scripts.html @@ -25,7 +25,7 @@ {{- $js = $bundle | resources.ExecuteAsTemplate $filename $page -}} {{- end -}} -{{- if and (not site.IsServer) $header -}} +{{- if and (not hugo.IsServer) $header -}} {{- $pc := site.Config.Privacy.GoogleAnalytics -}} {{- if and (not $pc.Disable) (hasPrefix site.Config.Services.GoogleAnalytics.ID "G-") }}