From c5edaa69b2e9aeb43bad43712a2b9244a2a87a4e Mon Sep 17 00:00:00 2001 From: Gabriel Chartier Date: Wed, 14 Aug 2024 15:53:10 -0400 Subject: [PATCH] Added custom error page so GH pages doesn't fallback --- src/routes/+error.svelte | 29 +++++++++++++++++++++++++++++ src/routes/+layout.svelte | 16 ++++++++++------ svelte.config.js | 4 +++- 3 files changed, 42 insertions(+), 7 deletions(-) create mode 100644 src/routes/+error.svelte diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte new file mode 100644 index 0000000..ae486b4 --- /dev/null +++ b/src/routes/+error.svelte @@ -0,0 +1,29 @@ + + +
+
+
+

{heading}

+

+ {$page.status === 404 ? notFoundMessage : errorMessage} +

+
+ +
+
+
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 9b4900b..fe8498b 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -1,9 +1,13 @@ -
- -