Skip to content

Commit ce24220

Browse files
committed
Fixup
1 parent d3ccd11 commit ce24220

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/com/sagar/casa/api/storyblok.clj

+3-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,10 @@
116116

117117

118118
(defmethod get-story :blogs
119-
[type]
119+
[type & [{include-body? :include-body?
120+
:or {include-body? false}}]]
120121
(->> (url nil {:starts-with "blog"
121-
:excluding-fields "body"})
122+
:excluding-fields (if include-body? "" "body")})
122123
get-content
123124
:stories
124125
(transform-story type)))

src/com/sagar/casa/rss.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
(defn rss-feed
99
[]
10-
(->> (api/get-story :blogs)
10+
(->> (api/get-story :blogs {:include-body? true})
1111
(map #(select-keys % [:id :title :slug :description
1212
:html-body :first-published-at]))
1313
(map #(assoc % :link (str "https://sagarvrajalal.com/" (:slug %))))

0 commit comments

Comments
 (0)