如何为Schema.org中的文章设置面包屑? [英] How to set breadcrumbs for an article in Schema.org?

查看:109
本文介绍了如何为Schema.org中的文章设置面包屑?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Schema.org,我希望搜索引擎阅读我的文章的面包屑。

Using Schema.org, I would like search engines to read the breadcrumbs of my articles.

但是, BreadcrumbList 网页 ,但不是 商品

However, BreadcrumbList is part of a WebPage but not a part of an Article.

我可以添加 WebPage 对象到每篇文章,但似乎有点多余,我不确定搜索引擎会如何对待它。

I can add a WebPage object to each article, but it seems a bit redundant and I'm not sure how search engines would treat it.

实现面包屑和文章对象的正确方法是什么?

现实生活中的例子将是很棒的。

What is a right way of implementing both breadcrumb and article objects?
Real life examples would be great.

推荐答案

文章和网页是不同的实体。由于各种原因,不模糊这些实体之间的界限是有意义的。文章没有面包屑,网页也没有。这就是为什么Schema.org仅为<下一个定义 breadcrumb 属性的原因。 code>网页(和子类型)。

Articles and web pages are different entities. For various reasons it makes sense not to blur the line between these entities. Articles have no breadcrumbs, web pages have. That’s why Schema.org defines the breadcrumb property only for WebPage (and sub-types).

常见且预期的方法是,除了页面上的任何实体之外,还提供 WebPage 实体(例如一个或多个 Article )。

The common and expected way is to provide a WebPage entity in addition to any entities you have on the page (like one or multiple Article).

mainEntity 属性(或相反的 mainEntityOfPage 属性 )表示网页描述的主要实体。

The mainEntity property (or the inverse mainEntityOfPage property) is used to denote the primary entity that the web page describes.

因此,对于包含单个文章的网页,您可能会遇到类似这样的情况:

So for a web page that contains a single article, you could have something like:


  • 网页 面包屑 BreadcrumbList

  • 网页 mainEntity 商品

  • WebPage breadcrumb BreadcrumbList
  • WebPage mainEntity Article

这篇关于如何为Schema.org中的文章设置面包屑?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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