summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Syrovetskiy <cblp@cblp.su>2015-11-20 15:50:14 +0300
committerYuriy Syrovetskiy <cblp@cblp.su>2015-11-20 15:50:14 +0300
commitdccef0759e850e484cac94855350daefde7d503d (patch)
tree43e5f027cfa6ecc4e9f8349c2006a5adfe316f11
parent606ff9a945895a9eff7b6f1febc521255cbaea6a (diff)
downloadhakyll-dccef0759e850e484cac94855350daefde7d503d.tar.gz
Item context has precedence before feed context
-rw-r--r--src/Hakyll/Web/Feed.hs4
1 files changed, 2 insertions, 2 deletions
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