diff --git a/themes/codex/layouts/_default/baseof.html b/themes/codex/layouts/_default/baseof.html index 75d07a7..0142b68 100644 --- a/themes/codex/layouts/_default/baseof.html +++ b/themes/codex/layouts/_default/baseof.html @@ -27,17 +27,17 @@ {{ block "styles" . }} {{ end }} {{ $base_styles_opts := .Scratch.Get "style_opts" | default (dict "src" "scss/pages/about.scss" "dest" "css/about.css") }} {{ $custom_styles_opts := (dict "src" "scss/custom.scss" "dest" "css/custom.css") }} - + {{ $current_page := . }} - + {{ range (slice $base_styles_opts $custom_styles_opts) }} {{ $style := resources.Get .src | resources.ExecuteAsTemplate .dest $current_page | toCSS | minify | fingerprint }} {{ end }} - - {{ range .AlternativeOutputFormats }} - {{ printf `` .Rel .MediaType.Type .MediaType.Suffix .Permalink $.Site.Title | safeHTML }} - {{ end }} + + {{ range .AlternativeOutputFormats }} + {{ printf `` .Rel .MediaType.Type .MediaType.FirstSuffix.Suffix .Permalink $.Site.Title | safeHTML }} + {{ end }} {{ block "links" . }} {{ end }} {{ partial "seo-schema.html" .}} @@ -47,7 +47,7 @@ - {{ partial "burger.html" .}} + {{ partial "burger.html" .}} {{ partial "nav.html" .}}