Fix JSON-LD rendering in recipe pages

Use @html directive to properly render JSON-LD script tags instead of literal text.
This commit is contained in:
2025-09-04 19:22:56 +02:00
parent 9b8a8ee1d5
commit b780fe3877
+1 -1
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:type" content="image/webp" />
<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>
<TitleImgParallax src={hero_img_src} {placeholder_src}>