Skip to content

Commit

Permalink
Fix error filtering posts by category
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanalemunioz committed Nov 1, 2024
1 parent 7ea7f77 commit b91c619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/blog/category/[category].astro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function getStaticPaths() {
return uniqueCategories.map((category) => {
const filteredPosts = allPosts
.filter((post) => post.data.category.includes(category))
.filter((post) => post.data.category === category)
.sort((a, b) => b.data.pubDate.valueOf() - a.data.pubDate.valueOf());
return {
params: { category },
Expand Down

0 comments on commit b91c619

Please sign in to comment.