summaryrefslogtreecommitdiff
path: root/layouts/_partials
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-03-23 15:55:08 +0800
committereltrac <hi@eltr.ac>2026-03-23 15:55:08 +0800
commitae705282e6771b31fa953186e5de842695d11253 (patch)
treeb82f89310a8d2727961f694a636e8884af6e447d /layouts/_partials
parente5557ff9374b102810eaedc346b804d04928b2e3 (diff)
refactor: move recurring elements to baseof.*.html
recurring elements: header, footer and home-nav
Diffstat (limited to 'layouts/_partials')
-rw-r--r--layouts/_partials/header.html2
-rw-r--r--layouts/_partials/home/home-nav.html2
2 files changed, 2 insertions, 2 deletions
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 @@
<header class="pagefind-exclude
- md:flex md:justify-between mb-4">
+ md:flex md:justify-between mb-4 mx-auto max-w-[var(--page-width)]">
<!-- Logo & Title -->
<div class="flex items-center justify-center gap-5
md:flex-col md:items-start md:justify-start md:gap-2">
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" }}
-<nav id="home-nav" class="relative w-full ps-0 flex list-none gap-4 text-size-sm">
+<nav id="home-nav" class="relative w-full ps-0 flex list-none gap-4 text-size-sm mx-auto max-w-[var(--page-width)]">
{{ range .Site.Params.homenav }}
{{ partial "home/home-nav-item" (dict
"text" .name