添加seo功能
This commit is contained in:
8
src/components/seo/json-ld.tsx
Normal file
8
src/components/seo/json-ld.tsx
Normal file
@@ -0,0 +1,8 @@
|
||||
export function JsonLd({schema}: {schema: Record<string, unknown>}) {
|
||||
return (
|
||||
<script
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{__html: JSON.stringify(schema)}}
|
||||
/>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user