Skip to content

Commit eff9bae

Browse files
committed
fix: sort the Meshery community feed by dateForSort (#8246)
The feed sorted on frontmatter.date, which holds mixed date formats, and applied a limit of 100 before the serialize filter. The newest posts and every event were cut before the filter ran. Sort on the normalized dateForSort field, as the blog feed already does, and drop the pre-filter limit; serialize already caps the output at 30. Signed-off-by: Ayush Gade <ayushgade23@gmail.com>
1 parent 521061d commit eff9bae

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎gatsby-config.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,7 @@ module.exports = {
302302
}
303303
}
304304
allMdx(
305-
sort: {frontmatter: {date: DESC}}
306-
limit: 100
305+
sort: {fields: {dateForSort: DESC}}
307306
filter: {
308307
frontmatter: {
309308
published: { eq: true }

0 commit comments

Comments
 (0)