Add sorting options to blog page and CMS clients
This update enables sorting of blog page entries based on 'publishedAt' date or custom order. This flexibility has been implemented across the marketing blog page, Keystatic, Wordpress, and Core CMS client services. This functionality allows more control over the presentation of entries.
This commit is contained in:
@@ -31,6 +31,8 @@ async function BlogPage({ searchParams }: { searchParams: { page: string } }) {
|
||||
limit,
|
||||
offset,
|
||||
language,
|
||||
sortBy: 'publishedAt',
|
||||
sortDirection: 'desc',
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user