summaryrefslogtreecommitdiff
path: root/src/layouts
diff options
context:
space:
mode:
authorseth <[email protected]>2024-10-09 10:59:13 -0400
committerGitHub <[email protected]>2024-10-09 10:59:13 -0400
commitd17bca56238e9ca326d60e58230d0d354f23bfe8 (patch)
tree12aee4c37a1490914e6307ce1b0023be2df93105 /src/layouts
parent7d6495399d5e1ba429a339de1c3a00f121e89305 (diff)
back to astro for hopefully the last time (#146)
Diffstat (limited to 'src/layouts')
-rw-r--r--src/layouts/Base.astro21
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>