diff --git a/layouts/partials/google-analytics.html b/layouts/partials/google-analytics.html index 63c84ab..f4d7d73 100644 --- a/layouts/partials/google-analytics.html +++ b/layouts/partials/google-analytics.html @@ -1,4 +1,4 @@ -{{- if .Site.IsServer -}} +{{- if hugo.IsServer -}} {{ else }} {{ $gid := (getenv "HUGO_GOOGLE_ANALYTICS_ID") }} diff --git a/layouts/partials/plausible-analytics.html b/layouts/partials/plausible-analytics.html index b9c0644..00a9bf7 100644 --- a/layouts/partials/plausible-analytics.html +++ b/layouts/partials/plausible-analytics.html @@ -1,4 +1,4 @@ -{{- if .Site.IsServer -}} +{{- if hugo.IsServer -}} {{ else if .Site.Params.plausible_analytics_domain }}