feat(headline): optionaler SectionHeader-Modus (kicker/number/action)
HeadlineBlock rendert als SectionHeader sobald kicker oder action gesetzt ist, sonst schlichte Text-Headline wie bisher (rückwärtskompatibel, opt-in). SectionHeader-Titel unterstützt jetzt \n → <br>. headline-Schema extends section_header. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -51,9 +51,9 @@
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<!-- Titel -->
|
||||
<!-- Titel (\n → harter Umbruch, wie HeadlineBlock) -->
|
||||
<svelte:element this={tag} class="text-3xl font-bold tracking-[-0.02em] text-stein-800 lg:text-[34px]">
|
||||
{title}
|
||||
{#each title.split('\n') as line, i}{#if i > 0}<br />{/if}{line}{/each}
|
||||
</svelte:element>
|
||||
|
||||
{#if subtitle}
|
||||
|
||||
Reference in New Issue
Block a user