diff --git a/src/blarg/models/posts.clj b/src/blarg/models/posts.clj index 22be866..5813538 100644 --- a/src/blarg/models/posts.clj +++ b/src/blarg/models/posts.clj @@ -96,10 +96,14 @@ (if-let [posts (->post-list (couch/with-db posts (couch/get-view "posts" view-name {:descending true})))] - (group-by - (fn [p] - (->nicer-month-year-str (:mmyyyy p))) - posts)))) + (vals + (group-by + (fn [p] + (:mmyyyy p)) + (map + (fn [p] + (assoc p :mmyyyy (->nicer-month-year-str (:mmyyyy p)))) + posts)))))) (defn count-posts [unpublished?]