From dccef0759e850e484cac94855350daefde7d503d Mon Sep 17 00:00:00 2001 From: Yuriy Syrovetskiy Date: Fri, 20 Nov 2015 15:50:14 +0300 Subject: Item context has precedence before feed context --- src/Hakyll/Web/Feed.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Hakyll') diff --git a/src/Hakyll/Web/Feed.hs b/src/Hakyll/Web/Feed.hs index c5f8e0b..1d18430 100644 --- a/src/Hakyll/Web/Feed.hs +++ b/src/Hakyll/Web/Feed.hs @@ -76,10 +76,10 @@ renderFeed feedPath itemPath config itemContext items = do loadTemplate = fmap readTemplate . readFile <=< getDataFileName itemContext' = mconcat - [ constField "root" (feedRoot config) + [ itemContext + , constField "root" (feedRoot config) , constField "authorName" (feedAuthorName config) , constField "authorEmail" (feedAuthorEmail config) - , itemContext ] feedContext = mconcat -- cgit v1.2.3