0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-03 08:00:26 +03:00
Files
popov.link/src/components/JsonLd.astro
Valentin Popov 3d0f485746 feat: add Open Graph and JSON-LD support to Head component
- Introduced OpenGraph component for enhanced social media sharing with Open Graph meta tags.
- Updated Head component to include OpenGraph and JSON-LD for improved SEO and structured data representation.
- Added comments for better clarity on meta tags and JSON-LD integration.
2025-06-14 12:19:01 +00:00

14 lines
271 B
Plaintext

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