From 773ee269b9221d6ac68fd8c9abb8e83a2ebde030 Mon Sep 17 00:00:00 2001 From: Michael Jerger Date: Sat, 31 Dec 2016 15:48:52 +0100 Subject: [PATCH] add some more debug options --- src/cryogen_core/compiler.clj | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index 2606c1e..7858efc 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -245,13 +245,15 @@ (defn compile-posts "Compiles all the posts into html and spits them out into the public folder" - [{:keys [blog-prefix post-root-uri disqus-shortname] :as params} posts] + [{:keys [blog-prefix post-root-uri disqus-shortname debug?] :as params} posts] (when-not (empty? posts) (println (blue "compiling posts")) (create-folder (path "/" blog-prefix post-root-uri)) (doseq [post posts] (println "\t-->" (cyan (:uri post))) - (println "\t-->" (cyan post)) + (println "\t-->" (cyan debug?)) + (when debug? + (println "\t-->" (cyan post))) (write-html (:uri post) params (render-file (str "/html/" (:layout post)) @@ -490,6 +492,8 @@ :site-url (if (.endsWith site-url "/") (.substring site-url 0 (dec (count site-url))) site-url) :theme-path (str "file:resources/templates/themes/" (:theme config))})] + (println (blue "debug info")) + (println "\t-->" (cyan navbar)) (set-custom-resource-path! (:theme-path params)) (wipe-public-folder keep-files) (println (blue "copying theme resources"))