summaryrefslogtreecommitdiff
path: root/haunt
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2023-08-11 20:43:42 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2023-08-11 20:43:42 -0400
commitf10af4bc0d8fb2a16b5bc6a89e710fa2f74ca12f (patch)
treeb5005c63b530aaa8112e27ccbd4d94814eb3f2ea /haunt
parent850c390c93f7f0ecfd0e5e277daa426903c5b58c (diff)
[pages] Fix htaccess builder and update 404 page
Diffstat (limited to 'haunt')
-rw-r--r--haunt/haunt.scm2
-rw-r--r--haunt/pages/404.sxml14
2 files changed, 13 insertions, 3 deletions
diff --git a/haunt/haunt.scm b/haunt/haunt.scm
index 79d05e4..cf254fc 100644
--- a/haunt/haunt.scm
+++ b/haunt/haunt.scm
@@ -47,7 +47,7 @@
(list (atom-feed #:max-entries 1024)
(blog)
(blogroll)
- (htaccess #:error-documents '((404 . "pages/404.html")))
+ (htaccess #:error-documents '((404 . "/pages/404.html")))
(outbox)
(static-pages)
(static-directory "static")))
diff --git a/haunt/pages/404.sxml b/haunt/pages/404.sxml
index d28396e..71136a9 100644
--- a/haunt/pages/404.sxml
+++ b/haunt/pages/404.sxml
@@ -1,6 +1,6 @@
;;; -*- scheme -*-
-;;; Copyright © 2019 - 2020 Jakob L. Kreuze <zerodaysfordays@sdf.org>
+;;; Copyright © 2019 - 2023 Jakob L. Kreuze <zerodaysfordays@sdf.org>
;;;
;;; This program is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU General Public License as
@@ -16,4 +16,14 @@
;;; along with this program. If not, see
;;; <http://www.gnu.org/licenses/>.
-`(p "Test")
+(use-modules (jakob theme)
+ (jakob utils sxml))
+
+(theme
+ #:title "Page Not Found"
+ #:content
+ `((p "Server responded with a status of 404: Not Found.")
+ (p "Whatever you're looking for, it's not here... anymore, at least.")
+ (p "That could be due to link rot. Perhaps the "
+ ,(hyperlink "https://web.archive.org/" "Wayback Machine")
+ " has it?")))