我仍然难以理解mainEntityOfPage.@id是什么,以及为什么它是谷歌推荐的。我特别指的是文章、博客文章和类似的模式。下面是我读到的一篇文章:
https://developers.google.com/structured-data/rich-snippets/articles
我现在有这样的博客页面设置(我忽略了大多数必需的字段,否则这篇文章就太长了):
<script type="application/ld+json">
{
"@@context": "http://schema.org",
"@@type": "WebPage",
"breadcrumb": {
"@@type": "BreadcrumbList",
"itemListElement": [{
"@@type": "ListItem",
"item": {
"@@id": "http://www.example.com",
"name": "My Website"
},
"position": 1
}, {
"@@type": "ListItem",
"item": {
"@@id": "http://www,example.com/blog",
"name": "Blog"
},
"position": 2
}, {
"@@type": "ListItem",
"item": {
"@@id": "http://www.example.com/blog/1001/test-blog-post",
"name": "Test Blog Post"
},
"position": 3
}]
},
"mainEntity": {
"@@type": "BlogPosting",
"headline": "Test Blog Post",
"url": "http://www.example.com/blog/1001/test-blog-post"
}
}
</script>像我一样使用mainEntity,这和使用mainEntityOfPage.@id是一样的吗?如果不是,我如何修改我的代码以适应谷歌的要求?
发布于 2016-05-10 11:25:19
@unor在此张贴详细答复:
如果谷歌的结构化数据测试工具不指定mainEntityOfPage.@id,而指定mainEntity,则更容易理解它是否会删除警告。我现在就是这样拥有它的。
https://webmasters.stackexchange.com/questions/93102
复制相似问题