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

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

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

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