Include the post's author's name in RSS feed #262

Open
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants

martasd commented Jan 3, 2014

Adds <dc:creator> XML tag to the generated rss.xml using author's name from data.yml.

See http://www.lowter.com/blogs/2008/2/9/rss-dccreator-author

@@ -79,6 +79,7 @@ def rss
xml.title_ page.title
xml.link "#{@ruhoh.config['production_url']}#{page.url}"
xml.pubDate_ page.date if page.date
+ xml['dc'].creator data['author']['name']
@Stebalien

Stebalien Jan 9, 2014

Contributor

This should probably be conditioned on the author's name being defined:

xml['dc'].creator data['author']['name'] unless data['author'].nil? or data['author']['name'].nil?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment