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/components/Navbar | |
| parent | 9b41ae7410058dbe0d0d2b8d276d96a1fe6f48e1 (diff) | |
Adds no-breadcrumbs variant of the navbar (#75)
Diffstat (limited to 'src/components/Navbar')
| -rw-r--r-- | src/components/Navbar/Navbar.astro | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/components/Navbar/Navbar.astro b/src/components/Navbar/Navbar.astro index 4fa05a9..0722f01 100644 --- a/src/components/Navbar/Navbar.astro +++ b/src/components/Navbar/Navbar.astro @@ -3,13 +3,19 @@ import Breadcrumbs from './Breadcrumbs.astro'; import SwitchLanguageLink from '../SwitchLanguageLink.astro'; import NavLinks from './NavLinks.astro'; import Logo from './Logo.astro'; + +interface Props { + noBreadcrumbs?: boolean; +} + +const { noBreadcrumbs } = Astro.props; --- <nav class="nav"> <Logo /> <NavLinks /> <div class="nav__bottom-row"> - <Breadcrumbs /> + {!noBreadcrumbs && <Breadcrumbs />} <SwitchLanguageLink /> </div> </nav> |
