Skip to content

Commit

Permalink
Add author email to feed
Browse files Browse the repository at this point in the history
Signed-off-by: Rohan Jain <crodjer@gmail.com>
  • Loading branch information
crodjer committed Jul 13, 2012
1 parent 3e6a8ba commit 1130d7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions data/templates/atom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<id>$root$$url$</id>
<author>
<name>$authorName$</name>
<email>$authorEmail$</email>
</author>
<updated>$updated$</updated>
$body$
Expand Down
3 changes: 3 additions & 0 deletions src/Hakyll/Web/Feed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ data FeedConfiguration = FeedConfiguration
feedDescription :: String
, -- | Name of the feed author.
feedAuthorName :: String
, -- | Email of the feed author.
feedAuthorEmail :: String
, -- | Absolute root URL of the feed site (e.g. @http://jaspervdj.be@)
feedRoot :: String
} deriving (Show, Eq)
Expand All @@ -65,6 +67,7 @@ createFeed feedTemplate itemTemplate url configuration items =
$ trySetField "title" (feedTitle configuration)
$ trySetField "description" (feedDescription configuration)
$ trySetField "authorName" (feedAuthorName configuration)
$ trySetField "authorEmail" (feedAuthorEmail configuration)
$ trySetField "root" (feedRoot configuration)
$ trySetField "url" url
$ fromBody body
Expand Down

0 comments on commit 1130d7e

Please sign in to comment.