From 9cf8c641849eb5dbdebbdee14e33785e6a693823 Mon Sep 17 00:00:00 2001 From: Charlie Banks Date: Fri, 18 Oct 2024 17:22:17 +0100 Subject: [PATCH] head tweak --- layouts/partials/head.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index c9e9168..d95a40c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -19,20 +19,20 @@ {{ end }} - {{ 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) }} + + + + {{ $noscript := resources.Get "sass/noscript.scss" | resources.ExecuteAsTemplate "noscript.scss" . | toCSS (dict "targetPath" "css/noscript.css" "enableSourceMap" false) }} - - {{end}} + + + + + {{ range .Site.Params.asset.fontawesome_css -}}