diff options
| author | Joe Carstairs <65492573+joeacarstairs@users.noreply.github.com> | 2024-02-01 22:30:29 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-01 22:30:29 +0000 |
| commit | d1d7e9c5bdc169149ccf0f5605b73a3921c111c8 (patch) | |
| tree | dc74a32ed9d46fad175b41c6acf79d54b3a81678 /src/components/Navbar | |
| parent | 08a61f7bcbbb140863b0f2c3523929bfe4076d9f (diff) | |
Updates from staging (#79)
* Adds no-breadcrumbs variant of the navbar (#75)
* README: replaces 'Sycamost' with 'joeacarstairs' (#74)
* Design system board (#77)
* Simplifies theme selector syntax
* Adds .dark theming class
* Adds design system page (dev env only)
* Closes the Sangschaw (#78)
* Closes the Sangschaw
* Fixes syntax
---------
Co-authored-by: Joe Carstairs <65492573+Sycamost@users.noreply.github.com>
---------
Co-authored-by: Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>
Co-authored-by: Joe Carstairs <65492573+Sycamost@users.noreply.github.com>
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> |
