Store base

This commit is contained in:
Greg Kilmer
2026-08-06 12:13:48 -04:00
parent 51a7b9fee0
commit f4a49fe9bc
28 changed files with 2471 additions and 2 deletions
+6 -1
View File
@@ -21,6 +21,7 @@ import "@fontsource-variable/jetbrains-mono";
import { ClientRouter } from "astro:transitions";
import NavBar from "@components/nav/NavBar.astro";
import StoreNav from "@components/store/StoreNav.astro";
import Footer from "@components/layout/Footer.astro";
import { themeInitScript } from "@/scripts/theme-init";
import { siteIdentity } from "@lib/site";
@@ -37,6 +38,9 @@ interface Props {
/** When true, emit <meta name="robots" content="noindex, nofollow">. Use on
pages that shouldn't be indexed (e.g. /contact, to reduce scraping). */
noindex?: boolean;
/** When true, render the store-only nav (StoreNav) instead of the main NavBar.
Used by store pages, which intentionally share no links with the main site. */
storeNav?: boolean;
}
const {
@@ -45,6 +49,7 @@ const {
surface = "neutral",
ogImage,
noindex = false,
storeNav = false,
} = Astro.props;
// True on the Home page. Used to switch the NavBar's view-transition-name so
@@ -134,7 +139,7 @@ const ogImageUrl = ogImage
Skip to content
</a>
<NavBar isHome={isHome} />
{storeNav ? <StoreNav /> : <NavBar isHome={isHome} />}
<main id="main">
<slot />