From 062d7e1ce2346a329f7c4546a8b224ef01c404b21759453a01da9c72eb8f7f5b Mon Sep 17 00:00:00 2001
From: Nicholas Johnson <nick@nicholasjohnson.ch>
Date: Mon, 20 May 2024 00:00:00 +0000
Subject: Create custom 404 page for HTML

In Gemini, the equivalent status code is 51. It does not return a
response body, so no equivalent page was created for Gemini.
---
 layouts/404.html | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 layouts/404.html

(limited to 'layouts/404.html')

diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..f3b9742
--- /dev/null
+++ b/layouts/404.html
@@ -0,0 +1,8 @@
+{{ define "main" -}}
+<nav>
+  <p>{{ emojify ":link:" | safeHTML }} <a class="link" href="{{ .Site.Home.RelPermalink }}" rel="noreferrer">{{ i18n "returnHome" }}</a></p>
+</nav>
+<main>
+  <h1 id="404">{{ i18n "pageNotFound" }}</h1>
+</main>
+{{- end }}
-- 
cgit v1.2.3