2 (:require [blog.time :as time]
3 [clojure.data.xml :refer :all]
4 [hiccup.core :as hiccup]
5 [commonmark-hiccup.core :refer [markdown->hiccup default-config]]))
7 (defn item [{:keys [title date slug tags short body]}]
8 (let [link (str "https://www.omarpolo.com/post/" slug ".html")]
14 (markdown->hiccup default-config body))]]
17 [:pubDate (time/fmt-rfc-2822 date)]]))
22 [:rss {:version "2.0" :xmlns:atom "http://www.w3.org/2005/Atom"}
25 [:description "Writing about things, sometimes"]
26 [:link "https://www.omarpolo.com"]
28 ;; [:atom:link {:href "https://www.omarpolo.com/rss.xml" :ref "self" :type "application/rss+xml"} nil]