X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fhead.html;h=15c517ce5f8f1eb71cbff8f590ff4717f6b6fdb0;hb=1bb5bdce0e57a62c05a3b6cbb49890acc2a94152;hp=69a8cea7386b3b930f221208989ff8a7f8b85d3c;hpb=a3fbbedb069339e83eed7c99d5e07270613580af;p=theme-danix.xyz.git diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 69a8cea..15c517c 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,17 +1,25 @@ + - {{ $main_options := (dict "targetPath" "css/site.css" "outputStyle" "compressed") }} - {{ $main_template := resources.Get "sass/main.scss" }} - {{ $main_style := $main_template | resources.ExecuteAsTemplate "main_parsed.scss" . | toCSS $main_options | resources.Minify }} + {{ $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 }}