From c9226ec7a204e69fd1ab362beec7dcda6a954037 Mon Sep 17 00:00:00 2001 From: jamie Date: Sun, 15 Jun 2025 20:51:39 +0100 Subject: feat: add 404 page --- 404.html | 9 +++++++++ site.hs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..4bbf02f --- /dev/null +++ b/404.html @@ -0,0 +1,9 @@ +--- +title: 404 Not Found +--- + +

The page you requested cannot be found.

+ +

+ Click here to return back to the home page. +

diff --git a/site.hs b/site.hs index 571eac3..c5a1d8e 100644 --- a/site.hs +++ b/site.hs @@ -21,7 +21,7 @@ main = hakyll $ do let compressCssItem = fmap compressCss compile (compressCssItem <$> sassCompiler) - match (fromList ["about.rst", "contact.markdown"]) $ do + match (fromList ["about.rst", "contact.markdown", "404.html"]) $ do route $ setExtension "html" compile $ pandocCompiler -- cgit v1.3.1