on master help sign in
Add author email to feed

Signed-off-by: Rohan Jain <crodjer@gmail.com>

commit1130d7e610b18a1975843f4ae219b7e7e80ae300 authorRohan Jain <crodjer@gmail.com> dateTue 3 Apr 2012, 15:58 (15 years ago) parent3e6a8ba
2 files changed+4
data/templates/atom.xml+1 src/Hakyll/Web/Feed.hs+3
data/templates/atom.xml+1
@@ -6,6 +6,7 @@
66 <id>$root$$url$</id>
77 <author>
88 <name>$authorName$</name>
9+ <email>$authorEmail$</email>
910 </author>
1011 <updated>$updated$</updated>
1112 $body$
src/Hakyll/Web/Feed.hs+3
@@ -45,6 +45,8 @@ data FeedConfiguration = FeedConfiguration
4545 feedDescription :: String
4646 , -- | Name of the feed author.
4747 feedAuthorName :: String
48+ , -- | Email of the feed author.
49+ feedAuthorEmail :: String
4850 , -- | Absolute root URL of the feed site (e.g. @http://jaspervdj.be@)
4951 feedRoot :: String
5052 } deriving (Show, Eq)
@@ -65,6 +67,7 @@ createFeed feedTemplate itemTemplate url configuration items =
6567 $ trySetField "title" (feedTitle configuration)
6668 $ trySetField "description" (feedDescription configuration)
6769 $ trySetField "authorName" (feedAuthorName configuration)
70+ $ trySetField "authorEmail" (feedAuthorEmail configuration)
6871 $ trySetField "root" (feedRoot configuration)
6972 $ trySetField "url" url
7073 $ fromBody body