From 7d26aeff65e927bf947610c76a976dc6df2df067 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 19 Apr 2026 00:26:06 -0700 Subject: [PATCH] Make writing CSS precede per-page custom CSS. Signed-off-by: Danila Fedorin --- layouts/_default/baseof.html | 4 +++- layouts/partials/head.html | 2 -- layouts/writing/baseof.html | 9 +++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 7d844c0..3fdf7d3 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,6 +1,8 @@ - {{- partial "head.html" . -}} + + {{- partial "head.html" . -}} + {{- partial "header.html" . -}}

diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 35c2e8b..86cc2e7 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,4 +1,3 @@ - @@ -105,4 +104,3 @@ {{ end }} {{ .Title }} - diff --git a/layouts/writing/baseof.html b/layouts/writing/baseof.html index 4648c7c..4c727af 100644 --- a/layouts/writing/baseof.html +++ b/layouts/writing/baseof.html @@ -1,15 +1,16 @@ {{- /* Note: changing the baseof template because the title, tags, etc. of a regular post are still valid. */ -}} - {{- partial "head.html" . -}} + + {{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }} + + {{- partial "head.html" . -}} + {{ with .Params.body_start_partial }} {{ partial . $ }} {{ end }} - - {{ $writingcss := resources.Get "scss/writing.scss" | css.Sass | resources.Minify }} - {{- partial "header.html" . -}}