From 77b0f69d0c6e555349dd491d7ca209924d119e61 Mon Sep 17 00:00:00 2001 From: Matt Kosarek Date: Wed, 11 Mar 2026 17:49:05 -0400 Subject: Migrate to astro --- src/layouts/BaseLayout.astro | 40 ++++++++++++++++++++++++++++++++++++++++ src/layouts/PostLayout.astro | 18 ++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 src/layouts/BaseLayout.astro create mode 100644 src/layouts/PostLayout.astro (limited to 'src/layouts') diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..8be53e0 --- /dev/null +++ b/src/layouts/BaseLayout.astro @@ -0,0 +1,40 @@ +--- +import '../styles/index.css'; + +interface Props { + title: string; + description?: string; +} + +const { + title, + description = "The personal website of Matthew Kosarek", +} = Astro.props; +--- + + + + + + + {title} + + + + + + + + +
+ +
+ + + diff --git a/src/layouts/PostLayout.astro b/src/layouts/PostLayout.astro new file mode 100644 index 0000000..31d0ac6 --- /dev/null +++ b/src/layouts/PostLayout.astro @@ -0,0 +1,18 @@ +--- +import BaseLayout from './BaseLayout.astro'; +import '../styles/post.css'; + +interface Props { + title: string; +} + +const { title } = Astro.props; +--- + + +
+

{title}

+ RSS Feed +
+ +
-- cgit v1.2.1