aboutsummaryrefslogtreecommitdiffstats
path: root/haunt.scm
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-05-05 02:36:22 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2025-06-15 01:30:32 +0200
commitfe50a8d4faa5cbf61155a15cdb3c1caaf70558c9 (patch)
tree621af0edf37bb8ac0bd2159fe0f6e5f9772a2f39 /haunt.scm
parent50b307b264e05bffe6c10ff438e1ac521ecfa510 (diff)
downloadhaunt-blog-fe50a8d4faa5cbf61155a15cdb3c1caaf70558c9.tar.gz
haunt-blog-fe50a8d4faa5cbf61155a15cdb3c1caaf70558c9.tar.bz2
haunt-blog-fe50a8d4faa5cbf61155a15cdb3c1caaf70558c9.zip
Make old WordPress URLs work.
Since people probably linked to existing WordPress articles at some point, and might continue to do so until we replace WordPress with the website we generate with Haunt, we need to keep the compatibility with the old articles URLs to not break people's links. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'haunt.scm')
-rw-r--r--haunt.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/haunt.scm b/haunt.scm
index 4213757..a35847f 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -16,11 +16,13 @@
(use-modules (haunt builder assets)
(haunt builder atom)
(haunt builder blog)
+ (haunt builder redirects)
(haunt builder rss)
(haunt site)
(website readers wordpress-markdown)
(website builders replicant-blog)
- (website builders replicant-blog-search))
+ (website builders replicant-blog-search)
+ (website builders wordpress-compatible-links))
(fluid-set! %default-port-encoding "UTF-8")
@@ -38,4 +40,8 @@
;;;;;;;;;;;
(atom-feed)
(atom-feeds-by-tag)
- (rss-feed)))
+ (rss-feed)
+ ;;;;;;;;;;;;;;;
+ ;; Redirects ;;
+ ;;;;;;;;;;;;;;;
+ (make-wordpress-compatible-links "links.txt")))