Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JSON Feed support #975

Merged
merged 15 commits into from
Aug 6, 2023
Prev Previous commit
Document that bodies go into content_html
  • Loading branch information
Minoru committed Aug 6, 2023
commit 1456f3eda398c9f824c7e569bf7f3f03b4697c1a
3 changes: 3 additions & 0 deletions lib/Hakyll/Web/Feed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ renderAtom = renderAtomWithTemplates atomTemplate atomItemTemplate

--------------------------------------------------------------------------------
-- | Render a JSON feed with a number of items.
--
-- Items' bodies will be put into @content_html@ field of the resulting JSON;
-- the @content@ field will not be set.
renderJson :: FeedConfiguration -- ^ Feed configuration
-> Context String -- ^ Item context
-> [Item String] -- ^ Feed items
Expand Down