How to set breadcrumbs for an article in Schema.org?

我的梦境 提交于 2019-12-10 23:37:41

问题


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

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

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.


回答1:


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).

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).

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:

  • WebPage breadcrumb BreadcrumbList
  • WebPage mainEntity Article



回答2:


Here is a example on Google with schema.org



来源:https://stackoverflow.com/questions/38352939/how-to-set-breadcrumbs-for-an-article-in-schema-org

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!