diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 3a058ac..4dbc8b6 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -35,7 +35,13 @@ {{- with ((.Site.GetPage "home").OutputFormats.Get "manifest") }} {{- end }} - {{- if not .Site.IsServer }} + {{- $server := "" }} + {{- if ge (int (index (split hugo.Version ".") 1)) "120" }} + {{- $server = hugo.IsServer }} + {{- else }} + {{- $server = .Site.IsServer }} + {{- end }} + {{- if not $server -}} {{ template "_internal/google_analytics.html" . }} {{- end }}