feat(seo): add JSON-LD, OG images and RSS feed for news

This commit is contained in:
openhands committed 2026-10-22 18:22:32 +02:00
1 parent 97454f361b
commit 30583b8e2e
7 files changed
+328 -11

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
/**
* Renders schema.org JSON-LD. The payload is data, not executable script, but
* `<` is escaped so an article title can never terminate the tag early.
*/
export function JsonLd({
data,
nonce,
}: {
data: Record<string, unknown> | Record<string, unknown>[];
nonce?: string;
}) {
return (
<script
type="application/ld+json"
nonce={nonce}
dangerouslySetInnerHTML={{
__html: JSON.stringify(data).replace(/</g, "\\u003c"),
}}
/>
);
}