From f90acb114073cce4c6d395dfc2c11c6b053c93d3 Mon Sep 17 00:00:00 2001 From: Dhananjay Balan Date: Sat, 12 Jan 2019 19:57:16 -0500 Subject: [PATCH] Send body over --- site.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/site.hs b/site.hs index d463480..563b4e8 100644 --- a/site.hs +++ b/site.hs @@ -97,8 +97,7 @@ main = hakyllWith config $ do route idRoute compile $ do posts <- fmap (take 5) . recentFirst =<< loadAllSnapshots "blog/*" "content" - let feedCtx = postCtx `mappend` - constField "description" "This is the post description" + let feedCtx = postCtx `mappend` bodyField "description" renderAtom feedConfig feedCtx posts match "templates/*" $ compile templateBodyCompiler