X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fhead.html;h=15c517ce5f8f1eb71cbff8f590ff4717f6b6fdb0;hb=1bb5bdce0e57a62c05a3b6cbb49890acc2a94152;hp=0197516db144c255757c1229d919063018d77315;hpb=f945c30bd5cb057b509c5d5cfae21f792e7fdc8f;p=theme-danix.xyz.git diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0197516..15c517c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,16 +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" . }} @@ -18,7 +27,7 @@ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} - {{ $title := print .Site.Title " ⋇ " .Title }} + {{ $title := print .Site.Title " ⁃ " .Title | safeHTML }} {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} {{ $title }}