refactor: allow page header to turn off the navigation

This commit is contained in:
Stefan Imhoff
2023-04-24 16:15:18 +02:00
parent fb3c95aa81
commit 984561db3a

View File

@@ -5,13 +5,14 @@ import ThemeToggle from '../components/ThemeToggle.astro';
export interface Props {
backLink?: string;
navigation?: boolean;
}
const { backLink } = Astro.props;
const { backLink, navigation = true } = Astro.props;
---
<header class="grid grid-cols-18 grid-rows-layout mbe-layout print:hidden" role="banner">
<Backlink backLink={backLink} />
<MainNavigation />
{navigation && <MainNavigation />}
<ThemeToggle />
</header>