diff options
Diffstat (limited to 'src/layouts/Base.astro')
| -rw-r--r-- | src/layouts/Base.astro | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro new file mode 100644 index 0000000..2aa3d9e --- /dev/null +++ b/src/layouts/Base.astro @@ -0,0 +1,21 @@ +--- +import Footer from "@components/Footer.astro"; +import Head from "@components/Head.astro"; +import Nav from "@components/Nav.astro"; + +const { title, description } = Astro.props.frontmatter || Astro.props; +--- + +<!doctype html> +<html lang="en"> + <Head title={title} description={description} /> + <body> + <header> + <Nav /> + </header> + <div class="main-content"> + <slot /> + </div> + <Footer /> + </body> +</html> |
