diff --git a/src/app/honig/[slug]/page.tsx b/src/app/honig/[slug]/page.tsx index abfb998..3c7433d 100644 --- a/src/app/honig/[slug]/page.tsx +++ b/src/app/honig/[slug]/page.tsx @@ -39,7 +39,12 @@ export async function generateMetadata( const product = await getProductBySlug(slug); if (!product) return {}; - const description = `${product.name} — ${product.tasteTags.join(", ")}. ${product.weightGrams} g aus eigener Imkerei in Altenmünster.`; + // Geschmacksnoten sind ein freiwilliges Admin-Feld. Ohne die Pruefung + // stand bei einem Produkt ohne Eintraege "Waldhonig — . 500 g aus eigener + // Imkerei" in der Google-Beschreibung und in jeder geteilten Vorschau — + // Gedankenstrich und einzelner Punkt ohne Inhalt dazwischen. + const tasteNote = product.tasteTags.length > 0 ? `${product.tasteTags.join(", ")}. ` : ""; + const description = `${product.name} — ${tasteNote}${product.weightGrams} g aus eigener Imkerei in Altenmünster.`; return { title: product.name, @@ -242,7 +247,11 @@ export default async function ProductDetailPage( {company.name} · {t.common.categories[product.category]}

{product.name}

-

{product.tasteTags.join(" · ")}

+ {/* Ohne gepflegte Noten sonst ein leerer Absatz, der nur Abstand + zwischen Ueberschrift und Bewertung erzeugt. */} + {product.tasteTags.length > 0 ? ( +

{product.tasteTags.join(" · ")}

+ ) : null} {reviewSummary.count > 0 ? (