feat: add schema.org metadata
This commit is contained in:
13
components/SchemaOrg.tsx
Normal file
13
components/SchemaOrg.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import Head from 'next/head';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const SchemaOrg = ({ schema }: Record<string, any>) => (
|
||||
<Head>
|
||||
<script
|
||||
type='application/ld+json'
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }}
|
||||
/>
|
||||
</Head>
|
||||
);
|
||||
|
||||
export default SchemaOrg;
|
||||
Reference in New Issue
Block a user