Schema.org/Microdata标记,用于列出最近的帖子而不提供“作者” /“发布商”? [英] Schema.org/Microdata markup for list of recent posts without providing "author" / "publisher"?

查看:114
本文介绍了Schema.org/Microdata标记,用于列出最近的帖子而不提供“作者” /“发布商”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下代码显示了我正在玩的实验性博客网站上最近发布的帖子的链接列表。问题在于,Google的结构化数据测试工具失败,因为它缺少必要的项目,例如 author publisher

The following code shows a list of links to recent posts on an experimental blog site I am playing with. The problem is that this fails Google's Structured Data Testing Tool because it is missing required items such as author and publisher.

但我不想为最近发布的内容显示这些内容,也不想为每个博客文章都显示这些内容。我该怎么办?摆脱结构化数据?
把所需的东西放进去并用CSS隐藏起来?或按原样离开?

But I don't want to show these for recent posts and I don't want to show them for every blog post either. What should I do? Get rid of the structured data? Put the required stuff in and hide it with CSS? Or leave as is?

<section>
<header>
<h4 class="h4-padding">Recent Posts</h4>
</header>
<ul>
<li>
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<header itemprop="name headline">
<h5><a href="http://myblog.com/post/5/1/2016/a-very-interesting-thing">A very interesting thing</a></h5>
</header>
</article>
</li>
<li>
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<header itemprop="name headline">
<h5><a href="http://myblog.com/post/30/7/2015/something-even-more-interesting">Something event more interesting</a></h5>
</header>
</article>
</li>
<li>
<article itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<header itemprop="name headline">
<h5><a href="http://myblog.com/something-very-dull">Something very dull</a></h5>
</header>
</article>
</li>
</ul>


推荐答案

非常好不是提供这些属性。 Schema.org不需要任何财产。

It’s perfectly fine not to provide these properties. Schema.org doesn’t require any property.

如果Google的结构化数据测试工具显示缺少某些属性,它的真正含义是:

If Google’s Structured Data Testing Tool says that certain properties are missing, what it really means is:

如果您不提供这些属性,我们将不会在Google搜索中显示相应的Rich Snippet或知识图谱功能

"If you don’t provide these properties, we won’t show the corresponding Rich Snippet or Knowledge Graph feature in Google Search"

不需要来摆脱您的结构化数据,仅仅是因为谷歌(作为众多消费者之一)目前不会不要用它做点什么。它对其他消费者可能有用,Google可能会改变/引入将来使用您当前属性集的功能。

There’s no need to get rid of your structured data just because Google (as one of many consumers) currently doesn’t do something with it. It can be useful for other consumers, and Google may change/introduce features in the future that work with your current set of properties.

这篇关于Schema.org/Microdata标记,用于列出最近的帖子而不提供“作者” /“发布商”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆