diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro
index 0f00213..90f92f5 100644
--- a/src/layouts/Layout.astro
+++ b/src/layouts/Layout.astro
@@ -6,10 +6,11 @@ import Header from "../components/Header.astro";
interface Props {
title: string;
description: string;
- contentClass?: string;
+ contentLayout?: "default" | "fill-height";
}
-const { title, description, contentClass = "" } = Astro.props;
+const { title, description, contentLayout = "default" } = Astro.props;
+const contentClass = contentLayout === "fill-height" ? "flex-1" : "py-12";
---
@@ -24,7 +25,7 @@ const { title, description, contentClass = "" } = Astro.props;
-
+
diff --git a/src/pages/index.astro b/src/pages/index.astro
index ef6fef9..a60a537 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -7,7 +7,7 @@ import Layout from "../layouts/Layout.astro";
---
diff --git a/src/pages/posts/[slug].astro b/src/pages/posts/[slug].astro
index d5d40ce..4a347c7 100644
--- a/src/pages/posts/[slug].astro
+++ b/src/pages/posts/[slug].astro
@@ -22,7 +22,6 @@ const renderedPost = await render(post);
---
diff --git a/src/pages/posts/index.astro b/src/pages/posts/index.astro
index 7a1b198..0b08213 100644
--- a/src/pages/posts/index.astro
+++ b/src/pages/posts/index.astro
@@ -8,7 +8,6 @@ posts.sort((a, b) => b.data.date.getTime() - a.data.date.getTime());
---