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}
+
+
+
+
+
diff --git a/src/pages/about.astro b/src/pages/about.astro
index 59a7b53..76445e0 100644
--- a/src/pages/about.astro
+++ b/src/pages/about.astro
@@ -1,7 +1,5 @@
---
-import '../styles/global.css';
-import Header from '../components/Header.astro';
-import Footer from '../components/Footer.astro';
+import BaseLayout from '../layouts/BaseLayout.astro';
const pageTitle = "About Me";
@@ -23,56 +21,41 @@ const fontWeight = "bold";
const textCase = "uppercase"
---
-
-
-
-
-
-
- {pageTitle}
-
-
-
-
- {pageTitle}
- ... and my new Astro site!
-
- I am working through Astro's introductory tutorial. This is the second page on my website, and it's the first one I built myself!
-
- This site will update as I complete more of the tutorial, so keep checking back and see how my journey is going!
-
- Here are a few facts about me:
-
- - My name is {identity.firstName}.
- - I live in {identity.country} and I work as a {identity.occupation}.
- {identity.hobbies.length >= 2 &&
- - Two of my hobbies are: {identity.hobbies[0]} and {identity.hobbies[1]}
- }
-
- My skills are:
-
- {skills.map((skill) => - {skill}
)}
-
-
- {happy && I am happy to be learning Astro!
}
-
- {finished && I finished this tutorial!
}
-
- {goal === 3 ? My goal is to finish in 3 days.
: My goal is not 3 days.
}
-
-
-
-
+
+
+ ... and my new Astro site!
+
+ I am working through Astro's introductory tutorial. This is the second page on my website, and it's the first one I built myself!
+
+ This site will update as I complete more of the tutorial, so keep checking back and see how my journey is going!
+
+ Here are a few facts about me:
+
+ - My name is {identity.firstName}.
+ - I live in {identity.country} and I work as a {identity.occupation}.
+ {identity.hobbies.length >= 2 &&
+ - Two of my hobbies are: {identity.hobbies[0]} and {identity.hobbies[1]}
+ }
+
+ My skills are:
+
+ {skills.map((skill) => - {skill}
)}
+
+
+ {happy && I am happy to be learning Astro!
}
+
+ {finished && I finished this tutorial!
}
+
+ {goal === 3 ? My goal is to finish in 3 days.
: My goal is not 3 days.
}
+
\ No newline at end of file
diff --git a/src/pages/blog.astro b/src/pages/blog.astro
index 23e4426..3ccd309 100644
--- a/src/pages/blog.astro
+++ b/src/pages/blog.astro
@@ -1,30 +1,14 @@
---
-import '../styles/global.css';
-import Header from '../components/Header.astro';
-import Footer from '../components/Footer.astro';
+import BaseLayout from '../layouts/BaseLayout.astro';
+const pageTitle = "My Astro Learning Blog";
---
-
-
-
-
-
-
- Astro
-
-
-
- My Astro Learning Blog
+
This is where I will post about my journey learning Astro.
-
-
-
-
+
\ No newline at end of file
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 4ecf9da..6fff50f 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,25 +1,7 @@
---
-import '../styles/global.css';
-import Header from '../components/Header.astro';
-import Footer from '../components/Footer.astro';
-
-const pageTitle = 'Home Page';
+import BaseLayout from '../layouts/BaseLayout.astro';
+const pageTitle = "Home Page";
---
-
-
-
-
-
-
-
- {pageTitle}
-
-
-
- {pageTitle}
-
-
-
-
+
+ My awesome blog subtitle
+
\ No newline at end of file