diff options
| author | Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com> | 2024-01-29 12:07:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-29 12:07:40 +0000 |
| commit | 18bee7d6ed44cd836097195d5ba331f1ed73eed3 (patch) | |
| tree | 9d18348a5e78cc216048af82c8e0a6b7227b0796 /src/layouts/Layout.astro | |
| parent | 9b41ae7410058dbe0d0d2b8d276d96a1fe6f48e1 (diff) | |
Adds no-breadcrumbs variant of the navbar (#75)
Diffstat (limited to 'src/layouts/Layout.astro')
| -rw-r--r-- | src/layouts/Layout.astro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index a5315be..938bfe5 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -10,9 +10,10 @@ import type Locale from '$types/Locale'; interface Props { title: string; + noBreadcrumbs?: boolean; } -const { title } = Astro.props; +const { noBreadcrumbs, title } = Astro.props; const locale = getLocaleFromPathOrDefault(Astro.url.pathname); const t = translate(locale); @@ -55,7 +56,7 @@ function qualifiedLocalisedPath(newLocale: Locale) { </head> <body id="top"> <a class="btn skip-to-content" href="#main">Skip to content</a> - <Navbar /> + <Navbar noBreadcrumbs={noBreadcrumbs} /> <slot /> <Footer /> </body> |
