summaryrefslogtreecommitdiff
path: root/src/components/Navbar
diff options
context:
space:
mode:
authorJoe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>2024-01-29 12:07:40 +0000
committerGitHub <noreply@github.com>2024-01-29 12:07:40 +0000
commit18bee7d6ed44cd836097195d5ba331f1ed73eed3 (patch)
tree9d18348a5e78cc216048af82c8e0a6b7227b0796 /src/components/Navbar
parent9b41ae7410058dbe0d0d2b8d276d96a1fe6f48e1 (diff)
Adds no-breadcrumbs variant of the navbar (#75)
Diffstat (limited to 'src/components/Navbar')
-rw-r--r--src/components/Navbar/Navbar.astro8
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>