diff --git a/exampleSite/.gitignore b/exampleSite/.gitignore new file mode 100644 index 0000000..176fad1 --- /dev/null +++ b/exampleSite/.gitignore @@ -0,0 +1,2 @@ +.hugo_build.lock +resources/ \ No newline at end of file diff --git a/exampleSite/layouts/partials/head.html b/exampleSite/layouts/partials/head.html index 6a15e8a..5215b58 100644 --- a/exampleSite/layouts/partials/head.html +++ b/exampleSite/layouts/partials/head.html @@ -9,14 +9,14 @@ {{ end }} - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }} {{ else }} {{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }} {{ end }} - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }} {{ else }} diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6a15e8a..5215b58 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -9,14 +9,14 @@ {{ end }} - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "outputStyle" "compressed" "enableSourceMap" false) }} {{ else }} {{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }} {{ end }} - {{ if .Site.IsServer }} + {{ if hugo.IsServer }} {{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }} {{ else }}