aboutsummaryrefslogtreecommitdiff
path: root/src/components/JsonLd.astro
blob: b58efd74cb6d5eea64430f7f3f2d5fac86a1ae51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
import type { WithContext, Thing } from "schema-dts";

type Props = {
	readonly schema: WithContext<Thing>;
};

const { schema } = Astro.props;
const json = JSON.stringify(schema);
---

<!-- JSON-LD -->
<script is:inline type="application/ld+json" set:html={json} />