feat(seo): add sitemap generator
This commit is contained in:
@@ -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"),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user