0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-03 16:10:26 +03:00
Files
popov.link/src/components/JsonLd.astro

14 lines
271 B
Plaintext
Raw Normal View History

---
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} />