diff --git a/layouts/partials/head/css.html b/layouts/partials/head/css.html
index 6d00b8d5..852f7f74 100644
--- a/layouts/partials/head/css.html
+++ b/layouts/partials/head/css.html
@@ -1,6 +1,6 @@
{{ $bundleRaw := resources.Get "sass/style.sass" | resources.ExecuteAsTemplate "css/main.tmp.css" . }}
-{{ if .Site.IsServer }}
+{{ if hugo.IsServer }}
{{ $cssOpts := (dict "targetPath" "css/main.css" "enableSourceMap" true ) }}
{{ $bundle := $bundleRaw | toCSS $cssOpts }}