github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/doc/themes/docsy/layouts/partials/head-css.html (about) 1 2 {{ $scssMain := "scss/main.scss"}} 3 {{ if not hugo.IsProduction }} 4 {{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}} 5 {{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }} 6 <link href="{{ $css.RelPermalink }}" rel="stylesheet"> 7 {{ else }} 8 {{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" false) | postCSS | minify | fingerprint }} 9 <link rel="preload" href="{{ $css.RelPermalink }}" as="style"> 10 <link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.integrity }}"> 11 {{ end }}