Add author name by default to RSS feeds
This commit is contained in:
parent
35f65f7846
commit
ac0fc618ff
3 changed files with 6 additions and 2 deletions
|
@ -4,4 +4,5 @@
|
||||||
<description><![CDATA[$description$]]></description>
|
<description><![CDATA[$description$]]></description>
|
||||||
<pubDate>$published$</pubDate>
|
<pubDate>$published$</pubDate>
|
||||||
<guid>$root$$url$</guid>
|
<guid>$root$$url$</guid>
|
||||||
|
<dc:creator>$authorName$</dc:creator>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?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>
|
<channel>
|
||||||
<title>$title$</title>
|
<title>$title$</title>
|
||||||
<link>$root$</link>
|
<link>$root$</link>
|
||||||
|
|
|
@ -77,6 +77,8 @@ renderFeed feedPath itemPath config itemContext items = do
|
||||||
|
|
||||||
itemContext' = mconcat
|
itemContext' = mconcat
|
||||||
[ constField "root" (feedRoot config)
|
[ constField "root" (feedRoot config)
|
||||||
|
, constField "authorName" (feedAuthorName config)
|
||||||
|
, constField "authorEmail" (feedAuthorEmail config)
|
||||||
, itemContext
|
, itemContext
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue