darthmeme / gridsome-plugin-rss

Generate an RSS feed from your Gridsome data store
16 stars 11 forks source link

RSS Item Sorting #6

Closed mynar7 closed 4 years ago

mynar7 commented 4 years ago

Problem: There's no options to sort RSS feed items currently.

Proposal: Add a config option to allow a custom sort function for the node array

Context: I use this plugin to generate an RSS feed for a podcast. I haven't had issues with aggregators except for dev.to, who say they look at the 5 "latest" items in a feed to publish. Their definition of latest is first five listed in the feed tags. They also claim other RSS feeds follow this pattern. It seems this plugin generates oldest first at the top, when I need to create newest first at the top.

Example to Reproduce: RSS feed: https://techjr.dev/rss.xml Code to produce feed: https://github.com/mynar7/techjr/blob/master/gridsome.config.js#L66

mynar7 commented 4 years ago

Fixed in: https://github.com/darthmeme/gridsome-plugin-rss/pull/7 Closing!