upstream #1
@ -42,12 +42,20 @@ export const BlogSeo = ({ authorDetails, title, summary, date, lastmod, url, ima
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
const authorList = authorDetails.map((author) => {
|
let authorList
|
||||||
return {
|
if (authorDetails) {
|
||||||
|
authorList = authorDetails.map((author) => {
|
||||||
|
return {
|
||||||
|
'@type': 'Person',
|
||||||
|
name: author.name,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
authorList = {
|
||||||
'@type': 'Person',
|
'@type': 'Person',
|
||||||
name: author.name,
|
name: siteMetadata.author,
|
||||||
}
|
}
|
||||||
})
|
}
|
||||||
|
|
||||||
const structuredData = {
|
const structuredData = {
|
||||||
'@context': 'https://schema.org',
|
'@context': 'https://schema.org',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user