hurrymaplelad / docpad-plugin-rss

Generates an RSS feed for a collection of documents
Other
10 stars 6 forks source link

Allow to add titles to feeds #12

Closed nylnook closed 8 years ago

nylnook commented 8 years ago

As explained in Issue #11... But to test to know if collectionConfig.title is empty before adding this ' | ' would be welcome... but I can't manage to add a if else statement in this file...

hurrymaplelad commented 8 years ago

Thanks for the contribution @nylnook! Looks like tests are failing on travis. You'll need to update the expected feed xml here with the new titles.

I'd expect collectionConfig.title to completely replace site.title if it's set. In coffeescript you might accomplish that with title: collectionConfig.title ? site.title. The collection author can always set the title based on the site title in their docpad.coffee file.

Finally, we should document the new title option on the readme.