From 21e3c0e75fa36354441c6d6490e0181dbdb25865 Mon Sep 17 00:00:00 2001 From: Carmen La Date: Sat, 31 Oct 2015 13:54:37 -0400 Subject: [PATCH] Add ".html" ending to preview pages. cryogen-project/cryogen#92 --- src/cryogen_core/compiler.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index 2d8a15e..940feeb 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -290,7 +290,7 @@ previews (if (> (count previews) 1) (assoc-in previews [1 :prev] (str blog-prefix "/index.html")) previews)] (create-folder (str blog-prefix "/p/")) (doseq [{:keys [index posts prev next]} previews] - (spit (if (= 1 index) (str public blog-prefix "/index.html") (str public blog-prefix "/p/" index)) + (spit (if (= 1 index) (str public blog-prefix "/index.html") (str public blog-prefix "/p/" index ".html")) (render-file "/html/previews.html" (merge params {:active-page "preview"