警告 "image" 和 "logo" 有错误的值
Warning that "image" and "logo" have wrong values
我已将 Schema.org 添加到我的博客列表中 JSON-LD:
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "Fixer la navigation Off-Canvas sur Foundation",
"image": "https://stephane-richin.s3-eu-central-1.amazonaws.com/S/foundation-website.jpg",
"author": "Stéphane Richin",
"datePublished": "2015-02-03",
"dateModified": "2015-02-03",
"publisher": {
"@type": "Organization",
"name": "Stéphane Richin",
"url": "http://stephane-richin.fr",
"logo" : "http://stephane-richin.fr/images/logo/logo-stephane-richin.svg"
},
"mainEntityOfPage": "True"
}
但是,我在 image
和 logo
上有 2 个警告:
image.itemtype has wrong value
logo.itemtype has wrong value
您知道为什么图片和徽标的值有误吗?
看起来为了通过结构化数据测试工具,您需要使用 ImageObject
作为 required 属性 of image
并且publisher.logo
.
来自他们的documentation:
image - ImageObject, required
您的最终代码将如下所示:
{
"@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。
我已将 Schema.org 添加到我的博客列表中 JSON-LD:
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "Fixer la navigation Off-Canvas sur Foundation",
"image": "https://stephane-richin.s3-eu-central-1.amazonaws.com/S/foundation-website.jpg",
"author": "Stéphane Richin",
"datePublished": "2015-02-03",
"dateModified": "2015-02-03",
"publisher": {
"@type": "Organization",
"name": "Stéphane Richin",
"url": "http://stephane-richin.fr",
"logo" : "http://stephane-richin.fr/images/logo/logo-stephane-richin.svg"
},
"mainEntityOfPage": "True"
}
但是,我在 image
和 logo
上有 2 个警告:
image.itemtype has wrong value
logo.itemtype has wrong value
您知道为什么图片和徽标的值有误吗?
看起来为了通过结构化数据测试工具,您需要使用 ImageObject
作为 required 属性 of image
并且publisher.logo
.
来自他们的documentation:
image - ImageObject, required
您的最终代码将如下所示:
{
"@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。