From 6c206c2d38c89ec571e5dde8541150665a0bad88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Tue, 16 Aug 2022 23:34:01 +0100 Subject: [PATCH] Add 404 page --- package.yaml | 6 ++++-- src/404.html | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 src/404.html diff --git a/package.yaml b/package.yaml index f6b071c..4b6139e 100644 --- a/package.yaml +++ b/package.yaml @@ -70,7 +70,7 @@ scripts: watch: parcel watch --no-autoinstall # Production build - build-dist: parcel build --no-cache --no-autoinstall && rename '.html' '.html.hbs' dist/*.html + build-dist: parcel build --no-cache --no-autoinstall # Checks check: tsc --noEmit @@ -78,5 +78,7 @@ scripts: lint: eslint --max-warnings=0 --format unix src # Parcel config -source: src/index.html +source: + - src/index.html + - src/404.html browserslist: '> 1%, not dead' diff --git a/src/404.html b/src/404.html new file mode 100644 index 0000000..ba33b6b --- /dev/null +++ b/src/404.html @@ -0,0 +1,20 @@ + + +
+
+

404

+ +
+
+ + Whatever you were expecting to see here doesn't exist. + + If you were sent here from a link and you really think + this page *should* exist, feel free to contact me! + +
+
+
+
+
+