Ver código fonte

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".
Matthias Wimmer 9 anos atrás
pai
commit
4d24884863
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/coleslaw.lisp

+ 2 - 1
src/coleslaw.lisp

@@ -36,7 +36,8 @@ in REPO-DIR. Optionally, OLDREV is the revision prior to the last push."
36 36
       (publish ctype))
37 37
     (do-subclasses (itype index)
38 38
       (publish itype))
39
-    (update-symlink "index.html" "1.html")))
39
+    (update-symlink (format nil "index.~A" (page-ext *config*))
40
+                    (format nil "1.~A" (page-ext *config*)))))
40 41
 
41 42
 (defgeneric deploy (staging)
42 43
   (:documentation "Deploy the STAGING build to the directory specified in the config.")