From 908bfa8b5e2a4fd2b4101575074f78ee2ae8e218 Mon Sep 17 00:00:00 2001 From: mmert9008 Date: Tue, 26 Aug 2025 21:53:28 -0500 Subject: [PATCH] Created a layout and refactored. Currently at https://docs.astro.build/en/tutorial/4-layouts/2/ --- src/layouts/BaseLayout.astro | 26 ++++++++++ src/pages/about.astro | 95 +++++++++++++++--------------------- src/pages/blog.astro | 24 ++------- src/pages/index.astro | 28 ++--------- 4 files changed, 74 insertions(+), 99 deletions(-) create mode 100644 src/layouts/BaseLayout.astro diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..d0bc0de --- /dev/null +++ b/src/layouts/BaseLayout.astro @@ -0,0 +1,26 @@ +--- +import '../styles/global.css'; +import Header from '../components/Header.astro'; +import Footer from '../components/Footer.astro'; + +const { pageTitle } = Astro.props; +--- + + + + + + + + {pageTitle} + + +
+

{pageTitle}

+ +