X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fhead.html;h=15c517ce5f8f1eb71cbff8f590ff4717f6b6fdb0;hb=1bb5bdce0e57a62c05a3b6cbb49890acc2a94152;hp=46f5ee3d5401e501bc497c101dea7ae220d35e28;hpb=8158405efe1b0475196c27e9acba9a3e569810c4;p=theme-danix.xyz.git diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 46f5ee3..15c517c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,17 +1,25 @@ + {{ $style_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} - {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $style_options }} + {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $style_options | fingerprint }} {{ $noscript_options := (dict "targetPath" "css/noscript.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} - {{ $noscript := resources.Get "sass/noscript.scss" | resources.ToCSS $noscript_options }} + {{ $noscript := resources.Get "sass/noscript.scss" | resources.ToCSS $noscript_options | fingerprint }} + + {{ if eq "curriculum" .Type }} + {{ $print_style_options := (dict "targetPath" "css/print.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} + {{ $print_style := resources.Get "sass/print.scss" | resources.ToCSS $print_style_options | fingerprint }} + + {{ end }} + {{ partial "funcs/favicon.html" . }}