Files
v10/site/src/components/JsonLd.astro
T
2026-04-22 10:18:05 -05:00

16 lines
328 B
Plaintext

---
import type { Thing, WithContext } from 'schema-dts';
interface Props {
schema: WithContext<Thing>;
}
const { schema } = Astro.props;
---
{
/* astro(4000) is expected — JSON-LD is static data that should be inline (withastro/astro#3544) */
}
<script type="application/ld+json" set:html={JSON.stringify(schema)} />