neuer versuch.
This commit is contained in:
@@ -9,15 +9,22 @@ export default function SeoJsonLd({ data }: SeoJsonLdProps) {
|
||||
|
||||
return (
|
||||
<>
|
||||
{jsonLdArray.map((item, index) => (
|
||||
<script
|
||||
key={index}
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: JSON.stringify(item, null, 0),
|
||||
}}
|
||||
/>
|
||||
))}
|
||||
{jsonLdArray.map((item, index) => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
...item,
|
||||
};
|
||||
|
||||
return (
|
||||
<script
|
||||
key={index}
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{
|
||||
__html: JSON.stringify(schema, null, 0),
|
||||
}}
|
||||
/>
|
||||
);
|
||||
})}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user