X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fhead.html;h=15c517ce5f8f1eb71cbff8f590ff4717f6b6fdb0;hb=1bb5bdce0e57a62c05a3b6cbb49890acc2a94152;hp=0f5757bf86eef52128ee8a6f7844c8678f7d0071;hpb=cb4379e19f22b0e389f369a048c5cce9321366c6;p=theme-danix.xyz.git diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0f5757b..15c517c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -4,16 +4,22 @@ - {{ $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" . }}