From 4d2488486333260563cba4d2b989e0989289933b Mon Sep 17 00:00:00 2001 From: Matthias Wimmer Date: Fri, 20 Nov 2015 23:56:39 +0100 Subject: [PATCH] Supporting other file extensions for the index page as well. Coleslaw is able to write the blog content to xhtml file as well, using the configuration setting :page-ext. But it did ignore the file extension when creating the index page link responsible for the default landing page. With this fix the file extension gets honored. E.g. when "xhtml" is configured, coleslaw will generate a link from "index.xhtml" to "1.xhtml". --- src/coleslaw.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/coleslaw.lisp b/src/coleslaw.lisp index d70d062..ccbbe64 100644 --- a/src/coleslaw.lisp +++ b/src/coleslaw.lisp @@ -36,7 +36,8 @@ in REPO-DIR. Optionally, OLDREV is the revision prior to the last push." (publish ctype)) (do-subclasses (itype index) (publish itype)) - (update-symlink "index.html" "1.html"))) + (update-symlink (format nil "index.~A" (page-ext *config*)) + (format nil "1.~A" (page-ext *config*))))) (defgeneric deploy (staging) (:documentation "Deploy the STAGING build to the directory specified in the config.")