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.
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 withcreatedAt
,publishedAt
, andupdatedAt
.I added a
dateField
option to the config so I could pass inpublishedDate
instead of relying on the defaultdate
to sort the posts by.