From 681cd8c1cc2904c562f9a58db3cbb657d58fb552 Mon Sep 17 00:00:00 2001
From: seth
Date: Tue, 16 May 2023 03:53:24 -0400
Subject: feat: rewrite with astro
---
src/layouts/Base.astro | 18 ++++
src/layouts/Blogpost.astro | 8 ++
src/layouts/Index.astro | 206 +++++++++++++++++++++++++++++++++++++++++++++
src/layouts/Page.astro | 12 +++
4 files changed, 244 insertions(+)
create mode 100644 src/layouts/Base.astro
create mode 100644 src/layouts/Blogpost.astro
create mode 100644 src/layouts/Index.astro
create mode 100644 src/layouts/Page.astro
(limited to 'src/layouts')
diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro
new file mode 100644
index 0000000..2e5b480
--- /dev/null
+++ b/src/layouts/Base.astro
@@ -0,0 +1,18 @@
+---
+import Head from "@components/Head.astro";
+import Nav from "@components/Nav.astro";
+// import Footer from "@components/Footer.astro";
+import "@styles/global.sass";
+const { title, description } = Astro.props;
+---
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layouts/Blogpost.astro b/src/layouts/Blogpost.astro
new file mode 100644
index 0000000..a52a7d5
--- /dev/null
+++ b/src/layouts/Blogpost.astro
@@ -0,0 +1,8 @@
+---
+import Page from "@layouts/Page.astro";
+const { title, description } = Astro.props.frontmatter;
+---
+
+
+
+
diff --git a/src/layouts/Index.astro b/src/layouts/Index.astro
new file mode 100644
index 0000000..ea3cfb3
--- /dev/null
+++ b/src/layouts/Index.astro
@@ -0,0 +1,206 @@
+---
+import Base from "@layouts/Base.astro";
+const { title, description } = Astro.props;
+---
+
+
+
+
+
+
diff --git a/src/layouts/Page.astro b/src/layouts/Page.astro
new file mode 100644
index 0000000..03569a0
--- /dev/null
+++ b/src/layouts/Page.astro
@@ -0,0 +1,12 @@
+---
+import Base from "@layouts/Base.astro";
+const { title, description } = Astro.props;
+---
+
+
+
+
--
cgit v1.2.3