diff --git a/src/lib/components/TopBanner.svelte b/src/lib/components/TopBanner.svelte index c27b005..7185d7e 100644 --- a/src/lib/components/TopBanner.svelte +++ b/src/lib/components/TopBanner.svelte @@ -68,6 +68,13 @@ subheadline?.trim() ? (marked.parseInline(subheadline) as string) : "", ); + const eyebrowLabel = "Windwiderstand Thüringen"; + // Eyebrow überall — nur ausblenden, wenn er die Headline dupliziert (Home). + const showEyebrow = $derived( + (headline?.replace(/<[^>]*>/g, "").trim().toLowerCase() ?? "") !== + eyebrowLabel.toLowerCase(), + ); + const hasResponsive = $derived( responsive != null && responsive.fallback.trim().length > 0, ); @@ -125,15 +132,31 @@ {/key} {/if} {#if hasPageTitle} -
-
- {#if headlineHtml} -

{@html headlineHtml}

- {/if} -
- {#if subheadlineHtml} -

{@html subheadlineHtml}

- {/if} + + +
+
+
+ {#if showEyebrow} + + + {eyebrowLabel} + + {/if} + {#if headlineHtml} +

+ {@html headlineHtml} +

+ {/if} + {#if subheadlineHtml} +

+ {@html subheadlineHtml} +

+ {/if} +
{/if}