Add :today key to params for compiling posts

This commit is contained in:
Carmen La 2016-09-03 15:33:37 -04:00
parent 272d688010
commit 52457c7b64

View file

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