From ae705282e6771b31fa953186e5de842695d11253 Mon Sep 17 00:00:00 2001 From: eltrac Date: Mon, 23 Mar 2026 15:55:08 +0800 Subject: refactor: move recurring elements to baseof.*.html recurring elements: header, footer and home-nav --- layouts/_partials/header.html | 2 +- layouts/_partials/home/home-nav.html | 2 +- layouts/archive.html | 2 -- layouts/article/section.html | 4 ---- layouts/baseof.html | 20 +++++++++++--------- layouts/baseof.page.html | 14 ++++++++++++++ layouts/baseof.section.html | 15 +++++++++++++++ layouts/cards/section.html | 3 --- layouts/fiction/section.html | 3 --- layouts/home.html | 2 -- layouts/library/section.html | 4 ---- layouts/page.html | 2 -- layouts/tags/taxonomy.html | 2 -- layouts/taxonomy.html | 2 -- layouts/term.html | 2 -- layouts/weekly/section.html | 4 ---- 16 files changed, 42 insertions(+), 41 deletions(-) create mode 100644 layouts/baseof.page.html create mode 100644 layouts/baseof.section.html diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html index 1b249f1e..279c822b 100644 --- a/layouts/_partials/header.html +++ b/layouts/_partials/header.html @@ -1,5 +1,5 @@
+ md:flex md:justify-between mb-4 mx-auto max-w-[var(--page-width)]">
diff --git a/layouts/_partials/home/home-nav.html b/layouts/_partials/home/home-nav.html index 4c0de915..ce66e563 100644 --- a/layouts/_partials/home/home-nav.html +++ b/layouts/_partials/home/home-nav.html @@ -1,5 +1,5 @@ {{ if eq .Site.Language.Lang "zh" }} -