georgemandis / jekyll-rss-feeds

Templates for rendering RSS feeds for your Jekyll blog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

<dc:creator> tag for author

dsernst opened this issue Β· comments

Thank you very much for this. πŸ˜„ I'm using your template here to create a Mailchimp subscription list for my Jekyll blog, using their RSS-to-Email feature.

The Mailchimp default templates try to grab the author of an individual post, using the <dc:creator> tag (see: http://kb.mailchimp.com/merge-tags/rss-blog/rss-item-tags). Since this feed.xml file leaves that tag out by default, the author gets parsed as "Anonymous".

This can be fixed by adding a line <dc:creator>{{ post.author.name | xml_escape }}</dc:creator> to feed.xml, within <item>. (post.author.name comes from how I have my Front Matter configured)

This also requires declaring the dc namespace within the rss tag, so that tag becomes:
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">

Here's the full change: dsernst@af48759

Thanks again πŸ˜ƒ

I dig it. Thank you very much!

Can you send along a pull request so I can merge? Or is there a way for me to initiate that from the link you already provided?

G