{{ $inProduction := hugo.IsProduction -}}
{{ $sass := "sass/style.sass" }}
{{ $target := "css/style.css" }}
{{ $includePaths := (slice "node_modules") }}
{{ $cssDevOpts := (dict "targetPath" $target "includePaths" $includePaths "enableSourceMap" true) }}
{{ $cssProdOpts := (dict "targetPath" $target "includePaths" $includePaths "outputStyle" "compressed") }}
{{ $isDocs := eq .Section "docs" }}
{{ if $isDocs }}
{{ end }}
{{ $cssOpts := cond $inProduction $cssProdOpts $cssDevOpts -}}
{{ $css := resources.Get "sass/style.sass" | toCSS $cssOpts }}
{{ if not $inProduction -}}
{{ else }}
{{ $prodCss := $css | fingerprint }}
{{ end }}