From 7153e9d522cdc74c8c0f0c17a8ac3e06ecb08d49 Mon Sep 17 00:00:00 2001 From: Carmen La Date: Wed, 8 Jul 2015 12:15:11 -0400 Subject: [PATCH] Added page with all tags - for issue #31 --- src/cryogen_core/compiler.clj | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index c796715..1a90d00 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -230,6 +230,13 @@ :posts posts :uri uri}))))))) +(defn compile-tags-page [{:keys [blog-prefix] :as params}] + (println (blue "compiling tags page")) + (spit (str public blog-prefix "/tags.html") + (render-file "/html/tags.html" + (merge params + {:uri (str blog-prefix "/tags.html")})))) + (defn compile-index "Compiles the index page into html and spits it out into the public folder" [{:keys [blog-prefix disqus?] :as params}] @@ -323,6 +330,7 @@ (compile-pages params pages) (compile-posts params posts) (compile-tags params posts-by-tag) + (compile-tags-page params) (compile-index params) (compile-archives params posts) (println (blue "generating site map"))