diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 0aa9a70..5481cf8 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -34,7 +34,7 @@
{{ partial "seo/metadata.html" . }}
{{ block "stylesheets" . }}{{ partial "stylesheets.html" . }}{{ end }}
- {{ if site.IsServer }}
+ {{ if hugo.IsServer }}
{{ $lunrStemmerJS := resources.Get "js/lunr.stemmer.support.js" }}
{{- if not (eq site.Language.Lang "en") }}
diff --git a/layouts/_default/contact.html b/layouts/_default/contact.html
index cacf8f5..9de34d4 100644
--- a/layouts/_default/contact.html
+++ b/layouts/_default/contact.html
@@ -20,7 +20,7 @@
{{ end }}
{{ define "footerfiles" }}
- {{ if site.IsServer }}
+ {{ if hugo.IsServer }}
{{ $contactJS := resources.Get "js/contact.js" }}
{{ else }}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
index 79b0226..a32f47d 100644
--- a/layouts/partials/scripts.html
+++ b/layouts/partials/scripts.html
@@ -1,7 +1,7 @@
{{ $params := dict "minify" true }}
-{{ if site.IsServer }}
+{{ if hugo.IsServer }}
{{ $frontJS := resources.Get "js/front.js" }}
{{ $moodleboxJS := resources.Get "js/moodlebox.js" }}
{{ $carouselJS := resources.Get "js/carousel.js" }}
diff --git a/layouts/partials/stylesheets-new.html b/layouts/partials/stylesheets-new.html
index 0546d93..5e2a389 100644
--- a/layouts/partials/stylesheets-new.html
+++ b/layouts/partials/stylesheets-new.html
@@ -6,7 +6,7 @@
{{ end }}
{{ $css_options := (dict ) }}
-{{ if site.IsServer }}
+{{ if hugo.IsServer }}
{{ $cssOpts := merge $css_options (dict "enableSourceMap" true) }}
{{ $forkAwesomeCSS := resources.Get "css/fork-awesome.css" | toCSS $cssOpts }}
{{ $fontsCSS := resources.Get "css/fonts.css" | toCSS $cssOpts }}
diff --git a/layouts/partials/stylesheets.html b/layouts/partials/stylesheets.html
index 59a6495..1c4a7e6 100644
--- a/layouts/partials/stylesheets.html
+++ b/layouts/partials/stylesheets.html
@@ -2,7 +2,7 @@
-{{ if site.IsServer }}
+{{ if hugo.IsServer }}
{{ $cssOpts := (dict "enableSourceMap" true) }}
{{ $forkAwesomeCSS := resources.Get "css/fork-awesome.css" | toCSS $cssOpts }}
{{ $fontsCSS := resources.Get "css/fonts.css" | toCSS $cssOpts }}