Add :today
key to params for compiling posts
This commit is contained in:
parent
272d688010
commit
52457c7b64
1 changed files with 2 additions and 1 deletions
|
@ -454,7 +454,8 @@
|
||||||
posts-by-tag (group-by-tags posts)
|
posts-by-tag (group-by-tags posts)
|
||||||
posts (tag-posts posts config)
|
posts (tag-posts posts config)
|
||||||
params (merge config
|
params (merge config
|
||||||
{:title (:site-title config)
|
{:today (java.util.Date.)
|
||||||
|
:title (:site-title config)
|
||||||
:active-page "home"
|
:active-page "home"
|
||||||
:tags (map (partial tag-info config) (keys posts-by-tag))
|
:tags (map (partial tag-info config) (keys posts-by-tag))
|
||||||
:latest-posts (->> posts (take recent-posts) vec)
|
:latest-posts (->> posts (take recent-posts) vec)
|
||||||
|
|
Loading…
Reference in a new issue