summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjamie <git@skilet.ro>2025-06-15 20:51:39 +0100
committerjamie <git@skilet.ro>2025-06-15 20:51:39 +0100
commitc9226ec7a204e69fd1ab362beec7dcda6a954037 (patch)
treea19453e7869232b55973910456ca3fb1e1f1c521
parent21e5fcfa3ff23c4b2835092a6fb3adc08295a808 (diff)
feat: add 404 page
-rw-r--r--404.html9
-rw-r--r--site.hs2
2 files changed, 10 insertions, 1 deletions
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
+---
+
+<p>The page you requested cannot be found.</p>
+
+<p>
+ <a href="/">Click here to return back to the home page.</a>
+</p>
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