diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a826b0c..b908c41 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -22,9 +22,11 @@ {{ end }} -{{ $options := (dict "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true) }} -{{ $style := resources.Get "scss/main.scss" | resources.ToCSS $options | resources.Fingerprint }} - +{{ $opts := dict "transpiler" "libsass" "targetPath" "main.css" "outputStyle" "compressed" "enableSourceMap" true }} +{{ with resources.Get "scss/main.scss" | toCSS $opts | minify | fingerprint }} + +{{ end }} + {{ range $val := $.Site.Params.customCSS }} {{ if gt (len $val) 0 }}