feat(seo): add sitemap generator

This commit is contained in:
gosangam
2026-06-15 13:52:12 +05:30
parent 6cc9285bad
commit be4c2f17fe
83 changed files with 633 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
/**
* Renders a schema.org JSON-LD <script>. Safe in server or client components.
* The `<` escape prevents the JSON from breaking out of the <script> element.
*/
export function JsonLd({ data }: { data: object | object[] }) {
return (
<script
type="application/ld+json"
dangerouslySetInnerHTML={{
__html: JSON.stringify(data).replace(/</g, "\\u003c"),
}}
/>
);
}