diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2023-08-11 20:43:42 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2023-08-11 20:43:42 -0400 |
| commit | f10af4bc0d8fb2a16b5bc6a89e710fa2f74ca12f (patch) | |
| tree | b5005c63b530aaa8112e27ccbd4d94814eb3f2ea | |
| parent | 850c390c93f7f0ecfd0e5e277daa426903c5b58c (diff) | |
[pages] Fix htaccess builder and update 404 page
| -rw-r--r-- | haunt/haunt.scm | 2 | ||||
| -rw-r--r-- | haunt/pages/404.sxml | 14 | ||||
| -rw-r--r-- | org/pages/changelog.org | 5 |
3 files changed, 18 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?"))) diff --git a/org/pages/changelog.org b/org/pages/changelog.org index 91bd00e..ff7f8d7 100644 --- a/org/pages/changelog.org +++ b/org/pages/changelog.org @@ -2,6 +2,11 @@ A record of any notable user-facing changes made to this website. For more detail, refer to the log of the [[https://git.sr.ht/~jakob/blog][Git repository]]. +** Friday, August 11, 2023 + +- Fixed custom error documents. +- Stood up static content mirrors on [[http://jakobyallfrbd3herebyee7hug3hxs2ma6aflmmllk35d7dyiwp3adid.onion/][Tor]] and [[http://mtgqjdrqqpovyhx7tortulrnvakbptsi3w5yintmo6lqapdd3hnq.b32.i2p][i2p]]. + ** Saturday, August 5, 2023 - Began maintaining a changelog. |