From 87e0a6667d7e44afff96c594c62d53a8db38235f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= <tm@tlater.net>
Date: Tue, 16 Aug 2022 23:44:41 +0100
Subject: [PATCH 1/2] Add 404 page

---
 package.yaml |  4 +++-
 src/404.html | 21 +++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 src/404.html

diff --git a/package.yaml b/package.yaml
index f6b071c..795ed2f 100644
--- a/package.yaml
+++ b/package.yaml
@@ -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..b1ec2e3
--- /dev/null
+++ b/src/404.html
@@ -0,0 +1,21 @@
+<extends src="./lib/html/base.html">
+  <block name="content">
+    <section class="section">
+      <div class="container">
+        <h1 class="title has-text-weight-normal">404</h1>
+
+        <div class="columns">
+          <div class="column content">
+            <!-- prettier-ignore -->
+            <markdown>
+              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!
+            </markdown>
+          </div>
+        </div>
+      </div>
+    </section>
+  </block>
+</extends>

From 5bb1f4386a5cc7ff77e62f05ec494eda0bcffd52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= <tm@tlater.net>
Date: Tue, 16 Aug 2022 23:44:53 +0100
Subject: [PATCH 2/2] package.yaml: Stop renaming .html to .html.hbs

This is no longer necessary because the new web server will manage
handlebars itself, rather than going through an opinionated third
party library.
---
 package.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package.yaml b/package.yaml
index 795ed2f..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