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 . @@ -15,6 +35,36 @@ import Wardens from './Wardens.astro';