【问题标题】:Organization logo needs url组织标志需要网址
【发布时间】: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.pngurl 字段的值是必需的。)

查看documentation for Organization 它说logo 可以是字符串或图像类型,那么为什么会失败?

相反,如果您只是尝试自己验证Organization 位,它将通过:

{
  "@id": "http://www.example.co.uk",
  "logo": "https://www.example.co.uk/logo.png",
  "name": "Test Organisation",
  "@type": "Organization"
}

【问题讨论】:

标签: schema.org json-ld google-rich-snippets


【解决方案1】:

当涉及到文章的发布者实体时,Google 自己的准则要严格一些:

https://developers.google.com/search/docs/data-types/article

它表明需要将发布者图像标记为 ImageObject。

【讨论】:

    猜你喜欢
    • 2014-03-02
    • 2021-11-03
    • 2015-05-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-04
    • 2013-07-29
    相关资源
    最近更新 更多