This commit is contained in:
2026-01-19 19:22:01 +01:00
parent b99258f886
commit 2feb73b982
5 changed files with 27 additions and 10 deletions

View File

@@ -112,7 +112,10 @@ export default async function ProductPage({ params }: ProductPageProps) {
// Filter products for this category
const filteredProducts = allProducts.filter(p =>
p.frontmatter.categories.some(cat => cat.toLowerCase().replace(/\s+/g, '-') === productSlug)
p.frontmatter.categories.some(cat =>
cat.toLowerCase().replace(/\s+/g, '-') === productSlug ||
cat === categoryTitle
)
);
return (