Google+ 添加 JSON-LD 后文章渲染不再有效 Schema.org
Google+ article rendering no longer working after adding JSON-LD Schema.org
我最近更新了我的博客,使用 JSON-LD 向站点添加 Schema.org 数据。但是,我 运行 遇到了一个问题 - Google+ 文章渲染不再有效。
当我尝试将 link 从我的博客分享到我的 Google+ 页面时,它会加载文章图片,但不会加载文章标题。在我完全依赖 Open Graph 协议之前,文章渲染工作正常。
我已经通过 Google 的结构化数据测试工具 运行 我的 JSON-LD 代码,它没有报告任何错误或警告。 Google 网站站长工具中也没有报告任何错误。
我是忽略了什么还是做错了什么?
作为参考,这是最近的博客 post 当我发现文章标题未加载时,我尝试分享:
https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
我 运行 你的 JSON-LD 通过了测试;实际上有两个错误:
警告:http://schema.org/datePublished 字段中的 "July 27, 2018" 值不是有效日期。日期应采用 ISO 8601 格式
错误:验证器无法识别文章前缀,请在前缀属性中明确说明
测试的完整结果是:
rdfanode
http://ogp.me/ns#title
@value = Diageo Releasing Trio of New Mortlach Expressions | One More Dram
http://ogp.me/ns#type
@value = article
http://ogp.me/ns#url
@value = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://ogp.me/ns#image
http://ogp.me/ns#image:width
@value = 960
http://ogp.me/ns#image:height
@value = 664
@value = https://onemoredram.com/wp-content/uploads/2018/07/mortlach-12-16-20-year-old-07-27-2018.jpg
http://ogp.me/ns#site_name
@value = One More Dram
http://ogp.me/ns/fb#admins
@value = 571973782956119
http://ogp.me/ns#description
@value = Diageo is releasing a trio of new Mortlach expressions: 12 Year Old The Wee Witchie, 16 Year Old Distiller's Dram, and 20 Year Old Cowie's B...
http://dev.twitter.com/cards/markup#card
@value = summary_large_image
http://dev.twitter.com/cards/markup#site
@value = @1moredram
http://dev.twitter.com/cards/markup#domain
@value = onemoredram.com
http://dev.twitter.com/cards/markup#title
@value = Diageo Releasing Trio of New Mortlach Expressions | One More Dram
http://dev.twitter.com/cards/markup#description
@value = Diageo is releasing a trio of new Mortlach expressions: 12 Year Old The Wee Witchie, 16 Year Old Distiller's Dram, and 20 Year Old Cowie's B...
http://dev.twitter.com/cards/markup#image
@value = https://onemoredram.com/wp-content/uploads/2018/07/mortlach-12-16-20-year-old-07-27-2018.jpg
jsonld
@type = http://schema.org/Organization
http://schema.org/name
@value = One More Dram
http://schema.org/url
@id = https://onemoredram.com
http://schema.org/logo
@id = https://onemoredram.com/wp-content/themes/onemoredram/images/og-default-image.jpg
http://schema.org/sameAs
@id = https://www.facebook.com/onemoredram
http://schema.org/sameAs
@id = https://plus.google.com/+onemoredram
http://schema.org/sameAs
@id = https://www.instagram.com/onemoredram
http://schema.org/sameAs
@id = https://www.patreon.com/onemoredram
http://schema.org/sameAs
@id = https://www.twitter.com/1moredram
http://schema.org/sameAs
@id = https://www.youtube.com/onemoredram
jsonld
WARNING: the "July 27, 2018" value in the http://schema.org/datePublished field is not a valid date. Dates should be in the ISO 8601 format
@type = http://schema.org/NewsArticle
http://schema.org/mainEntityOfPage
@type = http://schema.org/WebPage
@id = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://schema.org/headline
@value = Diageo Releasing Trio of New Mortlach Expressions
http://schema.org/description
@value = Diageo is releasing a trio of new Mortlach expressions: 12 Year Old The Wee Witchie, 16 Year Old Distiller’s Dram, and 20 Year Old Cowie’s Blue Seal.
http://schema.org/image
@id = https://onemoredram.com/wp-content/uploads/2018/07/mortlach-12-16-20-year-old-07-27-2018.jpg
http://schema.org/datePublished
@value = July 27, 2018
@type = http://Date
http://schema.org/dateModified
@value = July 27, 2018
@type = http://Date
http://schema.org/author
@type = http://schema.org/Person
http://schema.org/name
@value = Elias Aoude
http://schema.org/publisher
@type = http://schema.org/Organization
http://schema.org/name
@value = One More Dram
http://schema.org/logo
@type = http://schema.org/ImageObject
http://schema.org/url
@id = https://onemoredram.com/wp-content/themes/onemoredram/images/og-default-image.jpg
rdfanode
ERROR: the validator does not recognize the article prefix, please specify it clearly in the prefix attribute
resource = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fonemoredram.com%2F2018%2F07%2F27%2Fdiageo-releasing-trio-of-new-mortlach-expressions%2F
http://www.w3.org/1999/xhtml/vocab#prev = https://onemoredram.com/2018/07/26/johnnie-walker-launching-blue-label-ghost-and-rare-port-ellen/
article:published_time = 2018-07-27T11:30:24Z
https://api.w.org/ = https://onemoredram.com/wp-json/
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/feed/
article:modified_time = 2018-07-27T18:05:48Z
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/feed/
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fonemoredram.com%2F2018%2F07%2F27%2Fdiageo-releasing-trio-of-new-mortlach-expressions%2F&format=xml
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/comments/feed/
rdfanode
resource = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://www.w3.org/1999/xhtml/vocab#role = http://www.w3.org/1999/xhtml/vocab#search
我不认为 Google 如此严格(警告明智)但是错误可能会导致正确显示数据的问题;我会尝试纠正这些小问题,以防它们成为一个因素。
这是正确模式模板的示例(您已经看到了这个,或者可以使用它来尝试对您的模式进行故障排除):
<script type="application/ld+json">
{ "@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "14 Ways Json Can Improve Your SEO",
"alternativeHeadline": "and the women who love them",
"image": "http://example.com/image.jpg",
"award": "Best article ever written",
"editor": "John Doe",
"genre": "search engine optimization",
"keywords": "seo sales b2b",
"wordcount": "1120",
"publisher": "Book Publisher Inc",
"url": "http://www.example.com",
"datePublished": "2015-09-20",
"dateCreated": "2015-09-20",
"dateModified": "2015-09-20",
"description": "We love to do stuff to help people and stuff",
"articleBody": "You can paste your entire post in here, and yes it can get really really long.",
"author": {
"@type": "Person",
"name": "Steve"
}
}
</script>
希望它能引导您朝着正确的方向前进:)
我最近更新了我的博客,使用 JSON-LD 向站点添加 Schema.org 数据。但是,我 运行 遇到了一个问题 - Google+ 文章渲染不再有效。
当我尝试将 link 从我的博客分享到我的 Google+ 页面时,它会加载文章图片,但不会加载文章标题。在我完全依赖 Open Graph 协议之前,文章渲染工作正常。
我已经通过 Google 的结构化数据测试工具 运行 我的 JSON-LD 代码,它没有报告任何错误或警告。 Google 网站站长工具中也没有报告任何错误。
我是忽略了什么还是做错了什么?
作为参考,这是最近的博客 post 当我发现文章标题未加载时,我尝试分享: https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
我 运行 你的 JSON-LD 通过了测试;实际上有两个错误:
警告:http://schema.org/datePublished 字段中的 "July 27, 2018" 值不是有效日期。日期应采用 ISO 8601 格式
错误:验证器无法识别文章前缀,请在前缀属性中明确说明
测试的完整结果是:
rdfanode
http://ogp.me/ns#title
@value = Diageo Releasing Trio of New Mortlach Expressions | One More Dram
http://ogp.me/ns#type
@value = article
http://ogp.me/ns#url
@value = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://ogp.me/ns#image
http://ogp.me/ns#image:width
@value = 960
http://ogp.me/ns#image:height
@value = 664
@value = https://onemoredram.com/wp-content/uploads/2018/07/mortlach-12-16-20-year-old-07-27-2018.jpg
http://ogp.me/ns#site_name
@value = One More Dram
http://ogp.me/ns/fb#admins
@value = 571973782956119
http://ogp.me/ns#description
@value = Diageo is releasing a trio of new Mortlach expressions: 12 Year Old The Wee Witchie, 16 Year Old Distiller's Dram, and 20 Year Old Cowie's B...
http://dev.twitter.com/cards/markup#card
@value = summary_large_image
http://dev.twitter.com/cards/markup#site
@value = @1moredram
http://dev.twitter.com/cards/markup#domain
@value = onemoredram.com
http://dev.twitter.com/cards/markup#title
@value = Diageo Releasing Trio of New Mortlach Expressions | One More Dram
http://dev.twitter.com/cards/markup#description
@value = Diageo is releasing a trio of new Mortlach expressions: 12 Year Old The Wee Witchie, 16 Year Old Distiller's Dram, and 20 Year Old Cowie's B...
http://dev.twitter.com/cards/markup#image
@value = https://onemoredram.com/wp-content/uploads/2018/07/mortlach-12-16-20-year-old-07-27-2018.jpg
jsonld
@type = http://schema.org/Organization
http://schema.org/name
@value = One More Dram
http://schema.org/url
@id = https://onemoredram.com
http://schema.org/logo
@id = https://onemoredram.com/wp-content/themes/onemoredram/images/og-default-image.jpg
http://schema.org/sameAs
@id = https://www.facebook.com/onemoredram
http://schema.org/sameAs
@id = https://plus.google.com/+onemoredram
http://schema.org/sameAs
@id = https://www.instagram.com/onemoredram
http://schema.org/sameAs
@id = https://www.patreon.com/onemoredram
http://schema.org/sameAs
@id = https://www.twitter.com/1moredram
http://schema.org/sameAs
@id = https://www.youtube.com/onemoredram
jsonld
WARNING: the "July 27, 2018" value in the http://schema.org/datePublished field is not a valid date. Dates should be in the ISO 8601 format
@type = http://schema.org/NewsArticle
http://schema.org/mainEntityOfPage
@type = http://schema.org/WebPage
@id = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://schema.org/headline
@value = Diageo Releasing Trio of New Mortlach Expressions
http://schema.org/description
@value = Diageo is releasing a trio of new Mortlach expressions: 12 Year Old The Wee Witchie, 16 Year Old Distiller’s Dram, and 20 Year Old Cowie’s Blue Seal.
http://schema.org/image
@id = https://onemoredram.com/wp-content/uploads/2018/07/mortlach-12-16-20-year-old-07-27-2018.jpg
http://schema.org/datePublished
@value = July 27, 2018
@type = http://Date
http://schema.org/dateModified
@value = July 27, 2018
@type = http://Date
http://schema.org/author
@type = http://schema.org/Person
http://schema.org/name
@value = Elias Aoude
http://schema.org/publisher
@type = http://schema.org/Organization
http://schema.org/name
@value = One More Dram
http://schema.org/logo
@type = http://schema.org/ImageObject
http://schema.org/url
@id = https://onemoredram.com/wp-content/themes/onemoredram/images/og-default-image.jpg
rdfanode
ERROR: the validator does not recognize the article prefix, please specify it clearly in the prefix attribute
resource = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fonemoredram.com%2F2018%2F07%2F27%2Fdiageo-releasing-trio-of-new-mortlach-expressions%2F
http://www.w3.org/1999/xhtml/vocab#prev = https://onemoredram.com/2018/07/26/johnnie-walker-launching-blue-label-ghost-and-rare-port-ellen/
article:published_time = 2018-07-27T11:30:24Z
https://api.w.org/ = https://onemoredram.com/wp-json/
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/feed/
article:modified_time = 2018-07-27T18:05:48Z
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/feed/
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/wp-json/oembed/1.0/embed?url=https%3A%2F%2Fonemoredram.com%2F2018%2F07%2F27%2Fdiageo-releasing-trio-of-new-mortlach-expressions%2F&format=xml
http://www.w3.org/1999/xhtml/vocab#alternate = https://onemoredram.com/comments/feed/
rdfanode
resource = https://onemoredram.com/2018/07/27/diageo-releasing-trio-of-new-mortlach-expressions/
http://www.w3.org/1999/xhtml/vocab#role = http://www.w3.org/1999/xhtml/vocab#search
我不认为 Google 如此严格(警告明智)但是错误可能会导致正确显示数据的问题;我会尝试纠正这些小问题,以防它们成为一个因素。
这是正确模式模板的示例(您已经看到了这个,或者可以使用它来尝试对您的模式进行故障排除):
<script type="application/ld+json">
{ "@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "14 Ways Json Can Improve Your SEO",
"alternativeHeadline": "and the women who love them",
"image": "http://example.com/image.jpg",
"award": "Best article ever written",
"editor": "John Doe",
"genre": "search engine optimization",
"keywords": "seo sales b2b",
"wordcount": "1120",
"publisher": "Book Publisher Inc",
"url": "http://www.example.com",
"datePublished": "2015-09-20",
"dateCreated": "2015-09-20",
"dateModified": "2015-09-20",
"description": "We love to do stuff to help people and stuff",
"articleBody": "You can paste your entire post in here, and yes it can get really really long.",
"author": {
"@type": "Person",
"name": "Steve"
}
}
</script>
希望它能引导您朝着正确的方向前进:)