Get the month from content-date, if exists, instead of whole date.

This commit is contained in:
Alfredo Beaumont 2017-03-24 00:10:33 +01:00
parent 9cc9eaf241
commit ca4ba22ef9

View file

@ -95,7 +95,8 @@ of content loaded in the DB."
(let ((months (loop :for post :in (find-all 'post)
:for content-date := (content-date post)
:when content-date
:collect content-date)))
:collect (subseq content-date 0
(min 7 (length content-date))))))
(sort (remove-duplicates months :test #'string=) #'string>)))
(defun all-tags ()