Luke Jones

lukeonline - commit 2a6e48a

feat: blog layout2a6e48a72a12b51fde96461cbdd6a9082662df35LukeJ<luke.jones.2567@gmail.com>2026-07-15T18:24:18+01:00
diff --git a/src/components/Footer.astro b/src/components/Footer.astro index d7eee82..860a480 100644 --- 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 new file mode 100644 index 0000000..dd6468f --- /dev/null +++ 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 new file mode 100644 index 0000000..f4ca90e --- /dev/null +++ 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>