We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3ccd11 commit ce24220Copy full SHA for ce24220
src/com/sagar/casa/api/storyblok.clj
@@ -116,9 +116,10 @@
116
117
118
(defmethod get-story :blogs
119
- [type]
+ [type & [{include-body? :include-body?
120
+ :or {include-body? false}}]]
121
(->> (url nil {:starts-with "blog"
- :excluding-fields "body"})
122
+ :excluding-fields (if include-body? "" "body")})
123
get-content
124
:stories
125
(transform-story type)))
src/com/sagar/casa/rss.clj
@@ -7,7 +7,7 @@
7
8
(defn rss-feed
9
[]
10
- (->> (api/get-story :blogs)
+ (->> (api/get-story :blogs {:include-body? true})
11
(map #(select-keys % [:id :title :slug :description
12
:html-body :first-published-at]))
13
(map #(assoc % :link (str "https://sagarvrajalal.com/" (:slug %))))
0 commit comments