diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index e759afb..474acbe 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -9,7 +9,7 @@
{{ block "meta_tags" . }}{{end}}
- {{ if .Site.IsServer }}
+ {{ if hugo.IsServer }}
{{ $style := resources.Get "scss/style.scss" | toCSS (dict "targetPath" "css/style.css" "enableSourceMap" true) }}
{{ else }}
@@ -60,7 +60,7 @@
{{ block "footer_js" . }}
{{ end }}
- {{ if .Site.IsServer }}
+ {{ if hugo.IsServer }}
{{ else }}
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") }}