diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro
new file mode 100644
index 0000000..fa42451
--- /dev/null
+++ b/src/layouts/BaseLayout.astro
@@ -0,0 +1,27 @@
+---
+import "../styles/global.css"
+
+import Footer from "../components/Footer.astro"
+import Header from "../components/Header.astro"
+
+const {pageTitle} = Astro.props
+---
+
+
+
+
+
+
+
+ {pageTitle}
+
+
+
+ {pageTitle}
+
+
+
+
+
diff --git a/src/pages/about.astro b/src/pages/about.astro
index dad6c0c..638437a 100644
--- a/src/pages/about.astro
+++ b/src/pages/about.astro
@@ -1,7 +1,6 @@
---
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"
@@ -30,54 +29,41 @@ const goal = 3
const skillColor = "navy"
---
-
-
-
-
-
-
- {pageTitle}
+
+ ... and my new website!
+ I'm a web developer and I'm learning Astro.
+ This is my first website!
+
+ A few things about me:
+
+ - I'm {identity.firstName}.
+ - I'm {identity.age} years old.
+
+ - I'm a {identity.occupation} in {identity.location}.
+ - I'm interested in {identity.interests.join(", ")}.
+
+
+ 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.
}
+
+
-
-
-
-
- {pageTitle}
- ... and my new website!
- I'm a web developer and I'm learning Astro.
- This is my first website!
-
- A few things about me:
-
- - I'm {identity.firstName}.
- - I'm {identity.age} years old.
-
- - I'm a {identity.occupation} in {identity.location}.
- - I'm interested in {identity.interests.join(", ")}.
-
-
- 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.
}
-
-
-
-
+
diff --git a/src/pages/blog.astro b/src/pages/blog.astro
index a495bfd..31ac457 100644
--- a/src/pages/blog.astro
+++ b/src/pages/blog.astro
@@ -1,32 +1,18 @@
---
import "../styles/global.css"
-import Header from "../components/Header.astro"
-import Footer from "../components/Footer.astro"
+import BaseLayout from "../layouts/BaseLayout.astro"
const pageTitle = "Blog posts"
---
+
-
-
-
-
-
-
- {pageTitle}
-
-
-
+This is a list of my blog posts.
- {pageTitle}
- This is a list of my blog posts.
+
-
-
-
-
-
+
diff --git a/src/pages/index.astro b/src/pages/index.astro
index 518b668..c9086f5 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,26 +1,9 @@
---
-import "../styles/global.css"
-import Footer from "../components/Footer.astro"
-import Header from "../components/Header.astro"
+import BaseLayout from "../layouts/BaseLayout.astro"
const pageTitle = "Orbital Orbit"
---
-
-
-
-
-
-
- {pageTitle}
-
-
-
-
- {pageTitle}
-
-
-
-
+
+ My awesome blog subtitle
+