darthmeme / gridsome-plugin-rss

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

Allows `dateField` to be passed as an option #11

Closed samdbeckham closed 4 years ago

samdbeckham commented 4 years ago

My posts weren't sorting correctly so after digging into it realised it's because they didn't have a date field. I was generating them a little more granularly with createdAt, publishedAt, and updatedAt.

I added a dateField option to the config so I could pass in publishedDate instead of relying on the default date to sort the posts by.

darthmeme commented 4 years ago

LGTM 👍