X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fhead.html;h=15c517ce5f8f1eb71cbff8f590ff4717f6b6fdb0;hb=1bb5bdce0e57a62c05a3b6cbb49890acc2a94152;hp=31eb080fbf2ffd6a2bfed281b7eea043965f8f19;hpb=dd516ddc7ca6a360042bbb5dead5c56743082d7b;p=theme-danix.xyz.git diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 31eb080..15c517c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,17 +1,25 @@ + - {{ $sass_options := (dict "targetPath" "css/site.css" "outputStyle" "compressed" "transpiler" "dartsass") }} - {{ $sass_template := resources.Get "sass/main.scss" }} - {{ $main_style := $sass_template | resources.toCSS $sass_options }} + {{ $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 | 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 | 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" . }} @@ -19,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 }}