组织徽标需要 url
Organization logo needs url
我有以下 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
(A value for the url
field is required.)
查看 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 自己的准则要严格一些:
https://developers.google.com/search/docs/data-types/article
这表明需要将发布者图像标记为 ImageObject。
我有以下 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
(A value for theurl
field is required.)
查看 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 自己的准则要严格一些:
https://developers.google.com/search/docs/data-types/article
这表明需要将发布者图像标记为 ImageObject。