From 6ba76bc7f5cf3f71103e64e08db509d1e3a1280c Mon Sep 17 00:00:00 2001 From: Carmen La Date: Tue, 17 Jan 2017 01:41:04 -0500 Subject: [PATCH] Fix a regression --- project.clj | 2 +- src/cryogen_core/compiler.clj | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project.clj b/project.clj index cd7cd79..aafa6fd 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject cryogen-core "0.1.48" +(defproject cryogen-core "0.1.49" :description "Cryogen's compiler" :url "https://github.com/cryogen-project/cryogen-core" :license {:name "Eclipse Public License" diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index dea8566..b9e50a6 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -372,7 +372,7 @@ (print-debug-info meta)) (write-html uri params - (render-file "/html/home.html" + (render-file (str "/html/" (:layout home-page)) (merge params {:active-page "home" :home true @@ -497,7 +497,7 @@ :sidebar-pages sidebar-pages :home-page (if home-page home-page - (first latest-posts)) + (assoc (first latest-posts) :layout "home.html")) :archives-uri (page-uri "archives.html" config) :index-uri (page-uri "index.html" config) :tags-uri (page-uri "tags.html" config)