mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
refactor: allow page header to turn off the navigation
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user