diff --git a/src/pages/category/[category].astro b/src/pages/category/[category].astro index 4d8b8e6..3a8adcd 100644 --- a/src/pages/category/[category].astro +++ b/src/pages/category/[category].astro @@ -18,7 +18,9 @@ export async function getStaticPaths() { params: { category: category as string }, props: { category, - posts: posts.filter((post) => post.data.categories === category), + posts: posts.filter((post) => + post.data.categories?.includes(category as string), + ), }, }; });