diff options
Diffstat (limited to 'web/src/layouts/Base.astro')
-rw-r--r-- | web/src/layouts/Base.astro | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/web/src/layouts/Base.astro b/web/src/layouts/Base.astro index da71f41..4df9bd2 100644 --- a/web/src/layouts/Base.astro +++ b/web/src/layouts/Base.astro @@ -1,13 +1,16 @@ --- -import Head, {type Props as HeadProps} from "./Head.astro"; +import NavBar from "../components/NavBar.astro"; +import Head, { type Props as HeadProps } from "./Head.astro"; type Props = { + navbar?: boolean; } & HeadProps; --- <html> -<Head {...Astro.props}></Head> -<body class="bg-gray-800 text-white"> -<slot/> -<footer></footer> -</body> + <Head {...Astro.props} /> + <body class="bg-gray-800 text-white"> + {(Astro.props.navbar ?? true) ? <NavBar /> : null} + <slot /> + <footer></footer> + </body> </html> |