{{ $inServerMode := site.IsServer }} {{ $sass := "sass/style.sass" }} {{ $cssOutput := "css/style.css" }} {{ $includePaths := (slice "node_modules") }} {{ $cssDevOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "enableSourceMap" true) }} {{ $cssProdOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "outputStyle" "compressed") }} {{ $cssOpts := cond $inServerMode $cssDevOpts $cssProdOpts }} {{ $css := resources.Get $sass | toCSS $cssOpts }} {{ $isDoc := eq .Section "docs" }} {{ if $inServerMode }} {{ else }} {{ $prodCss := $css | fingerprint }} {{ end }} {{ if $isDoc }} {{ end }} {{ if (eq .Kind "404") }} {{ end }}