Skip to content

Commit

Permalink
Merge pull request #48 from DennisSmuda/contributions
Browse files Browse the repository at this point in the history
fix: blog post order on homepage
  • Loading branch information
DennisSmuda authored Dec 31, 2024
2 parents f2de403 + 8dc6e4e commit 950a536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default defineEventHandler(async (event) => {

const content = await serverQueryContent(event)
.where({ _dir: 'blog' })
.sort({ order: 1 })
.sort({ order: -1 })
.limit(limit || 16)
.find()

Expand Down

0 comments on commit 950a536

Please sign in to comment.