From 52457c7b64e648621731560b6b36d677bcfe45aa Mon Sep 17 00:00:00 2001 From: Carmen La Date: Sat, 3 Sep 2016 15:33:37 -0400 Subject: [PATCH] Add `:today` key to params for compiling posts --- src/cryogen_core/compiler.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cryogen_core/compiler.clj b/src/cryogen_core/compiler.clj index dfbf151..ed430b9 100644 --- a/src/cryogen_core/compiler.clj +++ b/src/cryogen_core/compiler.clj @@ -454,7 +454,8 @@ posts-by-tag (group-by-tags posts) posts (tag-posts posts config) params (merge config - {:title (:site-title config) + {:today (java.util.Date.) + :title (:site-title config) :active-page "home" :tags (map (partial tag-info config) (keys posts-by-tag)) :latest-posts (->> posts (take recent-posts) vec)