diff --git a/themes/secluded/layouts/partials/head.html b/themes/secluded/layouts/partials/head.html index 769f86e..cee4d9a 100644 --- a/themes/secluded/layouts/partials/head.html +++ b/themes/secluded/layouts/partials/head.html @@ -38,11 +38,20 @@ - {{ $options := (dict "outputStyle" "compressed" "enableSourceMap" true) }} - {{ $scss := resources.Get "scss/imports.scss" }} - {{ $style := $scss | resources.ToCSS $options }} - - + {{ with resources.Get "scss/imports.scss" }} + {{ $opts := dict "outputStyle" "compressed" "enabledSourceMap" true "transpiler" "libsass" "targetPath" "css/style.css" }} + {{ with . | toCSS $opts }} + {{ if hugo.IsDevelopment }} + + + {{ else }} + {{ with . | minify | fingerprint }} + + + {{ end }} + {{ end }} + {{ end }} + {{ end }} {{ partialCached "favicons.html" . }}