summaryrefslogtreecommitdiff
path: root/src/layouts/Layout.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+joeacarstairs@users.noreply.github.com>2024-02-01 22:30:29 +0000
committerGitHub <noreply@github.com>2024-02-01 22:30:29 +0000
commitd1d7e9c5bdc169149ccf0f5605b73a3921c111c8 (patch)
treedc74a32ed9d46fad175b41c6acf79d54b3a81678 /src/layouts/Layout.astro
parent08a61f7bcbbb140863b0f2c3523929bfe4076d9f (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/layouts/Layout.astro')
-rw-r--r--src/layouts/Layout.astro5
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>