From 58d9cbfba908d5e62749ff206ee85664d761b621 Mon Sep 17 00:00:00 2001 From: skydread1 Date: Wed, 28 Aug 2024 23:35:23 +0800 Subject: [PATCH] Items in rss feed are sorted by date --- src/loicb/server/md.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/loicb/server/md.clj b/src/loicb/server/md.clj index f8621d6..b4a6201 100644 --- a/src/loicb/server/md.clj +++ b/src/loicb/server/md.clj @@ -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) base-url "https://www.loicblanchard.me" blog-url (str base-url "/blog") channel {:title "Loic Blanchard - Clojure Blog Feed"