docs: jsonld via svelte-tag statt {@html}

User-feedback: <script type="application/ld+json"> kann svelte direkt
rendern. Kein @html-Notausgang noetig, sauberere variante mit
auto-escape.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jörg Lohrer 2026-04-28 07:56:58 +02:00
parent 7428930a76
commit 0b287f9ff6
1 changed files with 1 additions and 1 deletions

View File

@ -1734,7 +1734,7 @@ Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>"
<link rel="alternate" hreflang={alt.lang} href={`${siteUrl}/${alt.slug}/`} />
{/each}
<link rel="alternate" hreflang="x-default" href={canonical} />
{@html `<script type="application/ld+json">${jsonLd}</script>`}
<script type="application/ld+json">{jsonLd}</script>
</svelte:head>
{/if}