更新时间:2023-02-27 09:24:43
看起来为了通过 Structured Data Testing Tool 你需要使用 ImageObject
作为 requiredimage
和 publisher.logo
的属性.
Looks like in order to pass the Structured Data Testing Tool you need to use ImageObject
as a required property of image
and publisher.logo
.
来自他们的文档:
图像 - ImageObject,必需
您的最终代码将如下所示:
Your final code will look like:
{
"@context":"http://schema.org",
"@type":"BlogPosting",
"headline":"Fixer la navigation Off-Canvas sur Foundation",
"image": {
"@type": "ImageObject",
"url": "https://google.com/thumbnail1.jpg",
"height": 800,
"width": 800
},
"author": {
"@type": "Person",
"name": "Stéphane Richin"
},
"datePublished":"2015-02-03",
"dateModified":"2015-02-03",
"publisher": {
"@type":"Organization",
"name":"Stéphane Richin",
"url":"http://stephane-richin.fr",
"logo": {
"@type": "ImageObject",
"url": "https://google.com/logo.jpg",
"width": 600,
"height": 60
}
},
"mainEntityOfPage": "True"
}
我还修改了它以将作者识别为 Person schema.
I also amended it to recognise the author as Person schema.