summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDennis Fink2026-11-04 19:46:20 +0100
committerDennis Fink2026-11-04 19:46:20 +0100
commitde94696ed7428311c9832d2f0d55ee1d2d87a196 (patch)
tree977eabb58af68a84ed934af1d511b4109aec7bcc /templates
parentf284b9ad986a33e4121eb40a0fb3106ac052a984 (diff)
downloaddennisfink.me-de94696ed7428311c9832d2f0d55ee1d2d87a196.tar.gz
dennisfink.me-de94696ed7428311c9832d2f0d55ee1d2d87a196.zip
Add custom 404 error page
This adds a dedicated 404 page with a playful message that reflects the blog's title and tagline, along with a colourful gradient heading and animated thinking dots. It also provides reduced-motion support, excludes the page from search engine and Pagefind indexing, and directs visitors to the site's navigation and search.
Diffstat (limited to '')
-rw-r--r--templates/404.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/404.html b/templates/404.html
new file mode 100644
index 0000000..5328908
--- /dev/null
+++ b/templates/404.html
@@ -0,0 +1,29 @@
+{% extends "base.html" %}
+
+{% set pagefind_body = false %}
+
+{% block meta %}
+ {{ super() }}
+ <meta name="robots" content="noindex">
+{% endblock %}
+
+{% block styles %}
+ {{ super() }}
+ <link rel="stylesheet" href="{{ '/static/css/404.css' | asseturl }}">
+{% endblock %}
+
+{% block content %}
+ <article>
+ <p class="center"aria-hidden="true">404</p>
+ <h2 class="center">
+ <span class="visually-hidden">Error 404:</span>
+ This one didn’t linger
+ </h2>
+ <p class="center">
+ <em>Personal notes on things that linger</em> — but this page isn’t one
+ of them. Maybe it never existed, maybe it moved, or maybe the URL has a
+ typo. I’m still thinking about which<span class="dots" aria-hidden="true"><span>.</span><span>.</span><span>.</span></span>
+ </p>
+ <p class="center">The menu and the search up top will know more.</p>
+ </article>
+{% endblock %}