Add author name by default to RSS feeds

This commit is contained in:
Calen Pennington 2015-02-20 15:02:42 -05:00
parent 35f65f7846
commit ac0fc618ff
3 changed files with 6 additions and 2 deletions

View file

@ -4,4 +4,5 @@
<description><![CDATA[$description$]]></description>
<pubDate>$published$</pubDate>
<guid>$root$$url$</guid>
<dc:creator>$authorName$</dc:creator>
</item>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>$title$</title>
<link>$root$</link>

View file

@ -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
]