Skip to content

Commit

Permalink
fix: order of posts
Browse files Browse the repository at this point in the history
  • Loading branch information
juliankoehn committed Feb 13, 2025
1 parent 45aaa56 commit efa0bb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/slices/BlogPostSlider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ const BlogPostSlider = async ({ slice, context }: BlogPostSliderProps) => {
const blogPosts = await client.getByType("blog", {
filters: [filter.any("document.tags", tags)],
pageSize: 10,
orderings: [
{
field: "my.blog.date",
direction: "desc",
},
],
});

return (
Expand Down

0 comments on commit efa0bb3

Please sign in to comment.