From 9ca8653e0110a7d40f52c4f58888e2327dca8a62 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 17 Feb 2024 16:45:05 +0000 Subject: [PATCH] Updates layout to remove some global un-neededness --- web/src/layouts/Layout.astro | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/web/src/layouts/Layout.astro b/web/src/layouts/Layout.astro index f49ea83..56c3fcc 100644 --- a/web/src/layouts/Layout.astro +++ b/web/src/layouts/Layout.astro @@ -1,10 +1,14 @@ --- +import NavBar from '@components/scafold/NavBar.astro'; +import Footer from '@components/scafold/Footer.astro'; + interface Props { title: string; + hideNav?: boolean; } -const { title } = Astro.props; +const { title, hideNav } = Astro.props; --- @@ -19,7 +23,9 @@ const { title } = Astro.props; {title} + {!hideNav && } +