Skip to content

Commit

Permalink
Items in rss feed are sorted by date
Browse files Browse the repository at this point in the history
  • Loading branch information
skydread1 committed Aug 28, 2024
1 parent 36260a4 commit 58d9cbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/loicb/server/md.clj
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@
[]
(let [clojure-blog-posts (->> (files-of "blog")
(mapv load-post)
(filter (fn [{:post/keys [tags]}] (some #{"Clojure"} tags))))
(filter #(some #{"Clojure"} (:post/tags %)))
(sort-by #(first (:post/date %)))
reverse)

Check warning on line 78 in src/loicb/server/md.clj

View check run for this annotation

Codecov / codecov/patch

src/loicb/server/md.clj#L74-L78

Added lines #L74 - L78 were not covered by tests
base-url "https://www.loicblanchard.me"
blog-url (str base-url "/blog")
channel {:title "Loic Blanchard - Clojure Blog Feed"

Check warning on line 81 in src/loicb/server/md.clj

View check run for this annotation

Codecov / codecov/patch

src/loicb/server/md.clj#L80-L81

Added lines #L80 - L81 were not covered by tests
Expand Down

0 comments on commit 58d9cbf

Please sign in to comment.