fix
All checks were successful
Build & Deploy KLZ Cables / deploy (push) Successful in 9m53s

This commit is contained in:
2026-01-21 16:56:06 +01:00
parent 1d472062b1
commit 41dd897f08
2 changed files with 1 additions and 5 deletions

View File

@@ -60,10 +60,6 @@ export async function generateMetadata({ params }: ProductPageProps): Promise<Me
const product = await getProductBySlug(productSlug, locale);
if (!product) return {};
const categorySlug = slug[0];
const categoryKey = categorySlug.replace(/-cables$/, '').replace(/-([a-z])/g, (g) => g[1].toUpperCase());
const categoryTitle = t.has(`categories.${categoryKey}.title`) ? t(`categories.${categoryKey}.title`) : categorySlug;
return {
title: product.frontmatter.title,
description: product.frontmatter.description,

File diff suppressed because one or more lines are too long