summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2012-07-13 03:05:44 -0700
committerJasper Van der Jeugt <jaspervdj@gmail.com>2012-07-13 03:05:44 -0700
commit0f19aa93537d90259c04b09961e4d7afa2923363 (patch)
tree61dbfd98631c75de3ac70f4b01622aafb3417257
parent3e6a8bae7a0f88c240a61bc2529ed5501a7df917 (diff)
parentca5fb1378e1af062baf6d4c74edf0ddd42bbd50f (diff)
downloadhakyll-0f19aa93537d90259c04b09961e4d7afa2923363.tar.gz
Merge pull request #72 from crodjer/master
A tiny changeset and add my site
-rw-r--r--data/templates/atom.xml1
-rw-r--r--src/Hakyll/Web/Feed.hs3
-rw-r--r--web/examples.markdown2
3 files changed, 6 insertions, 0 deletions
diff --git a/data/templates/atom.xml b/data/templates/atom.xml
index 4a4eaaf..ef1faef 100644
--- a/data/templates/atom.xml
+++ b/data/templates/atom.xml
@@ -6,6 +6,7 @@
<id>$root$$url$</id>
<author>
<name>$authorName$</name>
+ <email>$authorEmail$</email>
</author>
<updated>$updated$</updated>
$body$
diff --git a/src/Hakyll/Web/Feed.hs b/src/Hakyll/Web/Feed.hs
index e7aecc9..f2f3342 100644
--- a/src/Hakyll/Web/Feed.hs
+++ b/src/Hakyll/Web/Feed.hs
@@ -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)
@@ -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
diff --git a/web/examples.markdown b/web/examples.markdown
index a3e0493..fc608e5 100644
--- a/web/examples.markdown
+++ b/web/examples.markdown
@@ -52,3 +52,5 @@ this list. This list has no particular ordering.
[source](http://gitorious.org/shakthimaan-blog)
- <http://www.alfredodinapoli.com/>,
[source](https://github.com/CharlesStain/alfredodinapoli.com)
+- <http://www.rohanjain.in/>,
+ [source](https://github.com/crodjer/rohanjain.in)