问题
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