Linty fresh
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/push/deploy unknown status

This commit is contained in:
2026-02-06 19:10:27 -03:00
parent 2959360d65
commit 3f93580090
7 changed files with 45 additions and 32 deletions

View File

@@ -25,16 +25,14 @@
url: data.site.url,
sameAs: data.site.person.sameAs,
}
: null
: null,
);
// Inject as HTML to avoid Prettier parsing ld+json script body as JS (Babel syntax error)
const ldJsonTag = (payload: string) =>
'<' + 'script type="application/ld+json">' + payload + '<' + '/script>';
const jsonLdHtml = $derived(ldJsonTag(JSON.stringify(jsonLd)));
const personLdHtml = $derived(
personLd != null ? ldJsonTag(JSON.stringify(personLd)) : ''
);
const personLdHtml = $derived(personLd != null ? ldJsonTag(JSON.stringify(personLd)) : '');
</script>
<svelte:head>