From fe50a8d4faa5cbf61155a15cdb3c1caaf70558c9 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 5 May 2025 02:36:22 +0200 Subject: 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 --- haunt.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'haunt.scm') 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"))) -- cgit v1.2.3