From 2d1ab2bce14d0b5f0a2686b8d3bdceb190ebbc0b Mon Sep 17 00:00:00 2001 From: Philippe Loctaux Date: Fri, 19 May 2023 15:16:55 +0200 Subject: [PATCH] refactor index page in page layout, added 404 page, footer is at bottom --- src/components/footer.astro | 2 +- src/layouts/page.astro | 26 ++++++++++++++++++++++++++ src/pages/404.astro | 10 ++++++++++ src/pages/index.astro | 29 ++++++++++------------------- 4 files changed, 47 insertions(+), 20 deletions(-) create mode 100644 src/layouts/page.astro create mode 100644 src/pages/404.astro diff --git a/src/components/footer.astro b/src/components/footer.astro index 74de0a3..6780ba1 100644 --- a/src/components/footer.astro +++ b/src/components/footer.astro @@ -3,7 +3,7 @@ const year = new Date().getFullYear(); --- diff --git a/src/layouts/page.astro b/src/layouts/page.astro new file mode 100644 index 0000000..bcd1d08 --- /dev/null +++ b/src/layouts/page.astro @@ -0,0 +1,26 @@ +--- +import Footer from "../components/footer.astro"; + +interface Props { + title?: string; +} + +let { title } = Astro.props; + +title = title !== undefined ? `${title} - ` : title; +--- + + + + + + + {title}Philippe Loctaux + + +
+ +
+