Merge pull request #65 from dhable/master
Make archive grouping configurable
This commit is contained in:
commit
42d4a9098c
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@
|
||||||
(let [date (if (:date page-meta)
|
(let [date (if (:date page-meta)
|
||||||
(.parse (java.text.SimpleDateFormat. (:post-date-format config)) (:date page-meta))
|
(.parse (java.text.SimpleDateFormat. (:post-date-format config)) (:date page-meta))
|
||||||
(parse-post-date file-name (:post-date-format config)))
|
(parse-post-date file-name (:post-date-format config)))
|
||||||
archive-fmt (java.text.SimpleDateFormat. "yyyy MMMM" (Locale/getDefault))
|
archive-fmt (java.text.SimpleDateFormat. (get config :archive-group-format "yyyy MMMM") (Locale/getDefault))
|
||||||
formatted-group (.format archive-fmt date)]
|
formatted-group (.format archive-fmt date)]
|
||||||
{:date date
|
{:date date
|
||||||
:formatted-archive-group formatted-group
|
:formatted-archive-group formatted-group
|
||||||
|
|
Loading…
Reference in a new issue