diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 3914252..0f837cf 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -3,7 +3,7 @@
{{ .Title }} - {{ .Site.Title }}
- {{- if .Site.IsServer -}}
+ {{- if hugo.IsServer -}}
{{- $options := (dict "targetPath" "styles.css" "enableSourceMap" true) -}}
{{- $styles := resources.Get "scss/main.scss" | toCSS $options }}