use cached md output in the rss feed too
This commit is contained in:
parent
e2ad41f8d7
commit
a203ad3874
|
@ -6,8 +6,7 @@
|
||||||
[clj-time.core]
|
[clj-time.core]
|
||||||
[clj-time.coerce]
|
[clj-time.coerce]
|
||||||
[blarg.models.posts :as posts]
|
[blarg.models.posts :as posts]
|
||||||
[blarg.route-utils :refer [register-routes]]
|
[blarg.route-utils :refer [register-routes]]))
|
||||||
[blarg.util :refer [md->html]]))
|
|
||||||
|
|
||||||
(def rss-title "blarg.ca")
|
(def rss-title "blarg.ca")
|
||||||
(def rss-site-url "http://www.blarg.ca/")
|
(def rss-site-url "http://www.blarg.ca/")
|
||||||
|
@ -25,7 +24,7 @@
|
||||||
{:title (:title post)
|
{:title (:title post)
|
||||||
:pubDate (clj-time.coerce/to-date (:created_at post))
|
:pubDate (clj-time.coerce/to-date (:created_at post))
|
||||||
:link (str rss-site-url (subs (get-post-url post) 1))
|
:link (str rss-site-url (subs (get-post-url post) 1))
|
||||||
:description (md->html (:body post))}))
|
:description (:html_body post)}))
|
||||||
(doall))))))
|
(doall))))))
|
||||||
|
|
||||||
(register-routes rss-routes
|
(register-routes rss-routes
|
||||||
|
|
Reference in a new issue