fixed compile-pages now use :layout

This commit is contained in:
InDevLand 2015-07-06 04:02:42 +02:00
parent e7636e7586
commit 82d3a5677f

View file

@ -191,7 +191,7 @@
(doseq [{:keys [uri] :as page} pages] (doseq [{:keys [uri] :as page} pages]
(println "\t-->" (cyan uri)) (println "\t-->" (cyan uri))
(spit (str public uri) (spit (str public uri)
(render-file "/html/page.html" (render-file (str "/html/" (:layout page))
(merge params (merge params
{:servlet-context "../" {:servlet-context "../"
:page page :page page