Added page with all tags - for issue #31

This commit is contained in:
Carmen La 2015-07-08 12:15:11 -04:00
parent 2264af82df
commit 7153e9d522

View file

@ -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"))