Ahrefs 96->100
This commit is contained in:
@@ -10,10 +10,10 @@ export default function SeoJsonLd({ data }: SeoJsonLdProps) {
|
||||
return (
|
||||
<>
|
||||
{jsonLdArray.map((item, index) => {
|
||||
const schema = {
|
||||
'@context': 'https://schema.org',
|
||||
...item,
|
||||
};
|
||||
// Only add @context if it doesn't already exist in the item
|
||||
const schema = (item as any)['@context']
|
||||
? item
|
||||
: { '@context': 'https://schema.org', ...item };
|
||||
|
||||
return (
|
||||
<script
|
||||
|
||||
Reference in New Issue
Block a user