diff --git a/themes/gochowdown/layouts/_default/baseof.html b/themes/gochowdown/layouts/_default/baseof.html
index 819c6fe..b96e521 100644
--- a/themes/gochowdown/layouts/_default/baseof.html
+++ b/themes/gochowdown/layouts/_default/baseof.html
@@ -15,7 +15,7 @@
- {{ if .Site.IsServer }}
+ {{ if hugo.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/gochowdown.css" "enableSourceMap" true ) }}
{{ $styles := resources.Get "scss/gochowdown.scss" | resources.ExecuteAsTemplate "style.gochowdown.css" . | toCSS $cssOpts }}
@@ -43,7 +43,7 @@
{{ block "content" . }}{{ end }}
{{ partial "footer.html" . }}
- {{ if .Site.GoogleAnalytics }}
+ {{ if .Site.Config.Services.GoogleAnalytics }}
{{ template "_internal/google_analytics.html" . }}
{{ end }}