{{ if .Site.Params.favicon }} {{ partial "favicon" }} {{ end }} {{ $opts := dict "targetPath" "css/main.css" "enableSourceMap" (not hugo.IsProduction) }} {{ $sass := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | toCSS $opts }} {{ $css := resources.Match "css/*.css" | resources.Concat "css/bundle.css" }} {{ with slice $sass $css | resources.Concat "css/main.css" }} {{ if hugo.IsDevelopment }} {{ else }} {{ with . | minify | fingerprint }} {{ end }} {{ end }} {{ end }} {{ with resources.Get "sass/noscript.scss" }} {{ $opts := dict "targetPath" "css/noscript.css" "enableSourceMap" (not hugo.IsProduction) }} {{ with . | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS $opts }} {{ if hugo.IsDevelopment }} {{ else }} {{ with . | minify | fingerprint }} {{ end }} {{ end }} {{ end }} {{ end }}