【发布时间】:2019-12-17 07:42:57
【问题描述】:
我有以下 JSON-LD:
{
"mainEntity": {
"itemListElement": [{
"author": {
"@id": "https://www.example.co.uk/gardens-and-driveways/blog/author/test",
"image": "https://www.example.co.uk/blog/authors/no-image",
"name": "Test Author",
"@type": "Person"
},
"publisher": {
"@id": "http://www.example.co.uk",
"logo": "https://www.example.co.uk/logo.png",
"name": "Test Organisation",
"@type": "Organization"
},
"datePublished": "2015-08-10T11:04:33",
"headline": "Blog headline",
"image": "https://www.example.co.uk/blog-image.jpg",
"url": "https://www.example.co.uk/blog-article",
"name": "Blog Article",
"@type": "BlogPosting"
}],
"@type": "ItemList"
},
"url": "https://www.example.co.uk/blog-category-page",
"@context": "https://schema.org/",
"description": "Blog articles in this category",
"name": "Blog category",
"@type": "CollectionPage"
}
如果我try to validate using Google's validator 会为发布者组织logo 字段抛出错误。
https://www.example.co.uk/logo.png(url字段的值是必需的。)
查看documentation for Organization 它说logo 可以是字符串或图像类型,那么为什么会失败?
相反,如果您只是尝试自己验证Organization 位,它将通过:
{
"@id": "http://www.example.co.uk",
"logo": "https://www.example.co.uk/logo.png",
"name": "Test Organisation",
"@type": "Organization"
}
【问题讨论】:
-
查看 Google developers.google.com/search/docs/data-types/logo 的指南并检查您的徽标尺寸。
标签: schema.org json-ld google-rich-snippets