From f9e074ea188fec737ccb66a9d22cc036ffdeb1b8 Mon Sep 17 00:00:00 2001 From: Ash Entwisle Date: Tue, 20 Feb 2024 14:35:26 +0000 Subject: [PATCH] implemented error and updated todo to use error Signed-off-by: Ash Entwisle --- src/layouts/Todo.astro | 22 +++++----------------- src/pages/404.astro | 9 +++++++++ 2 files changed, 14 insertions(+), 17 deletions(-) create mode 100644 src/pages/404.astro diff --git a/src/layouts/Todo.astro b/src/layouts/Todo.astro index aa309df..1fa47a1 100644 --- a/src/layouts/Todo.astro +++ b/src/layouts/Todo.astro @@ -1,20 +1,8 @@ --- -// import Error from "../components/Error.astro"; //! TODO: sort this out -import Boilerplate from "./Boilerplate.astro"; -import Error from "../components/Error.astro"; - -const keywords: string[] = []; +import Error from "./Error.astro"; --- - - -

- Sorry, the page `{Astro.url}` does not yet exist, but it issoon to be added. - Click here to go back to the homepage. -

-
-
+ + Sorry, the page `{Astro.url}` is currently under construction. + Click here to go back to the homepage. + diff --git a/src/pages/404.astro b/src/pages/404.astro new file mode 100644 index 0000000..fc3dae1 --- /dev/null +++ b/src/pages/404.astro @@ -0,0 +1,9 @@ +--- +import Error from "../layouts/Error.astro" + +--- + + + Sorry, the page `{Astro.url}` does not exist, + Click here to go back to the homepage. + \ No newline at end of file