diff --git a/data/templates/rss-item.xml b/data/templates/rss-item.xml index 70126ac..cc56490 100644 --- a/data/templates/rss-item.xml +++ b/data/templates/rss-item.xml @@ -4,4 +4,5 @@ $published$ $root$$url$ + $authorName$ diff --git a/data/templates/rss.xml b/data/templates/rss.xml index c6f3b08..c4fc3ae 100644 --- a/data/templates/rss.xml +++ b/data/templates/rss.xml @@ -1,5 +1,6 @@ - + $title$ $root$ @@ -8,5 +9,5 @@ type="application/rss+xml" /> $updated$ $body$ - + diff --git a/src/Hakyll/Web/Feed.hs b/src/Hakyll/Web/Feed.hs index 794ded5..c5f8e0b 100644 --- a/src/Hakyll/Web/Feed.hs +++ b/src/Hakyll/Web/Feed.hs @@ -77,6 +77,8 @@ renderFeed feedPath itemPath config itemContext items = do itemContext' = mconcat [ constField "root" (feedRoot config) + , constField "authorName" (feedAuthorName config) + , constField "authorEmail" (feedAuthorEmail config) , itemContext ]