Fix JSON-LD rendering in recipe pages
Some checks failed
CI / update (push) Failing after 5s

Use @html directive to properly render JSON-LD script tags instead of literal text.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-04 19:22:56 +02:00
parent d3a291b9f1
commit 06cd7e7677

View File

@@ -277,7 +277,7 @@ h4{
<meta property="og:image:secure_url" content="https://bocken.org/static/rezepte/thumb/{data.short_name}.webp" /> <meta property="og:image:secure_url" content="https://bocken.org/static/rezepte/thumb/{data.short_name}.webp" />
<meta property="og:image:type" content="image/webp" /> <meta property="og:image:type" content="image/webp" />
<meta property="og:image:alt" content="{stripHtmlTags(data.name)}" /> <meta property="og:image:alt" content="{stripHtmlTags(data.name)}" />
<script type="application/ld+json">{JSON.stringify(data.recipeJsonLd)}</script> {@html `<script type="application/ld+json">${JSON.stringify(data.recipeJsonLd)}</script>`}
</svelte:head> </svelte:head>
<TitleImgParallax src={hero_img_src} {placeholder_src}> <TitleImgParallax src={hero_img_src} {placeholder_src}>