Add the author to the item in an rss feed.

The author was missing from the generated rss feed's items.  This adds it
back, but only uses the name for now.
This commit is contained in:
Matthew Dawson
2013-07-07 12:49:14 -04:00
parent c4af75b4d8
commit c8758ff22d
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ var rssOutput = `<?xml version="1.0" encoding="UTF-8"?>
<title>Limiting Concurrency in Go</title>
<link>http://jmoiron.net/blog/limiting-concurrency-in-go/</link>
<description>A discussion on controlled parallelism in golang</description>
<author>Jason Moiron</author>
<pubDate>2013-01-16T21:52:35-05:00</pubDate>
</item>
<item>
+3
View File
@@ -92,6 +92,9 @@ func newRssItem(i *Item) *RssItem {
Guid: i.Id,
PubDate: anyTimeFormat(time.RFC3339, i.Created, i.Updated),
}
if i.Author != nil {
item.Author = i.Author.Name
}
return item
}