From 1fdc700023ca93efcb85313196b667221b56bbe2 Mon Sep 17 00:00:00 2001
From: lex00 <121451605+lex00@users.noreply.github.com>
Date: Tue, 17 Nov 2026 13:35:21 -0700
Subject: [PATCH] feat(site): site map in the footer from the sidebar groups
Closes #32
---
src/components/Footer.astro | 52 ++++++++++++++++++++++++++++++++++++-
1 file changed, 51 insertions(+), 1 deletion(-)
diff --git a/src/components/Footer.astro b/src/components/Footer.astro
index c3d9385..89b6929 100644
--- a/src/components/Footer.astro
+++ b/src/components/Footer.astro
@@ -1,11 +1,31 @@
---
// Starlight's footer, then what the Hugo site's footer said (the tools, the
// wardens, and that help is a message away), then the pixel eye and the name
-// on every page, linking home.
+// on every page, linking home. The site map repeats the sidebar's groups, so
+// the splash landing page, which has no sidebar, still reaches every page.
import Default from '@astrojs/starlight/components/Footer.astro';
import Wardens from './Wardens.astro';
+
+const { sidebar } = Astro.locals.starlightRoute;
+const columns = sidebar.map((e) =>
+ e.type === 'group'
+ ? { label: e.label, links: e.entries.filter((x) => x.type === 'link') }
+ : { label: e.label, href: e.href, links: [] },
+);
---
Intentius builds behold, chant, choudoufu, plunge, plywood and terragucci. Everything is open source at github.com/intentius. Also from Intentius are blacklight, spicypath and the wardens