commit 2a6e48a72a12b51fde96461cbdd6a9082662df35 parent aa69557f350ee240e50a00440f8d153bcf70f094 Author: LukeJ <luke.jones.2567@gmail.com> Date: Wed, 15 Jul 2026 18:24:18 +0100 feat: blog layout Diffstat:
| M | src/components/Footer.astro | | | 2 | +- |
| A | src/layouts/ContentList.astro | | | 9 | +++++++++ |
| A | src/pages/blog/index.astro | | | 8 | ++++++++ |
3 files changed, 18 insertions(+), 1 deletion(-)
diff --git a/src/components/Footer.astro b/src/components/Footer.astro @@ -1,3 +1,3 @@ <footer> - <p>Footer</p> + <p></p> </footer> diff --git a/src/layouts/ContentList.astro b/src/layouts/ContentList.astro @@ -0,0 +1,9 @@ +--- +import Base from "./Base.astro"; + +const { ...props } = Astro.props; +--- +<Base title={props.title}> + <p>This is a blog page</p> + <slot /> +</Base> diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro @@ -0,0 +1,8 @@ +--- +import ContentList from "../../layouts/ContentList.astro"; + +const title = "Blogs"; +--- +<ContentList title={title}> + <p>hello world</p> +</ContentList>