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/components/Head.astro | 11 +++++++++++ src/components/Nav.astro | 29 +++++++++++++++++++++++++++++ src/components/PostList.astro | 15 +++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 src/components/Head.astro create mode 100644 src/components/Nav.astro create mode 100644 src/components/PostList.astro (limited to 'src/components') diff --git a/src/components/Head.astro b/src/components/Head.astro new file mode 100644 index 0000000..6f96984 --- /dev/null +++ b/src/components/Head.astro @@ -0,0 +1,11 @@ +--- +const { title, description } = Astro.props.title; +--- + + + + + {title} + + + diff --git a/src/components/Nav.astro b/src/components/Nav.astro new file mode 100644 index 0000000..d25b180 --- /dev/null +++ b/src/components/Nav.astro @@ -0,0 +1,29 @@ +--- +const links = { + home: "/", + blog: "/blog", + github: "https://github.com/getchoo", +}; +--- + + + + diff --git a/src/components/PostList.astro b/src/components/PostList.astro new file mode 100644 index 0000000..a537e43 --- /dev/null +++ b/src/components/PostList.astro @@ -0,0 +1,15 @@ +--- +const posts = await Astro.glob("../pages/blog/posts/*.md"); +--- + +
+ +
-- cgit v1.2.3