是否有分页链接微数据条目?

ale*_*rus 11 pagination web-crawler microdata schema.org

面包屑链接有一个微观数据:http://www.data-vocabulary.org/Breadcrumb/ 但页面链接是否有类似的微数据,如:[< - ] 3 4 5 [上一页] 6 [当前] 7 [下一页] 8 9 10 11 [ - >]

sup*_*ero 17

是的,例如pagination,Article项目的属性是..

但对于收藏页面,没有直接的方法,至少我不知道.无论如何,这些页面通常不适用于索引.但如果你对此感到强烈......


1.)Schema.org/SiteNavigationElement

你可以使用Schema.orgSiteNavigationElement,并延长它作为一个分页元素:

例:

<!-- The container for your pagination markup -->
<div itemscope itemtype="http://schema.org/SiteNavigationElement/Pagination">
  ...
Run Code Online (Sandbox Code Playgroud)

2.)Schema.org/WebPage/relatedLink

与此网页相关的链接,例如与其他相关网页相关的链接.

WebPage项目有一个称为relatedLink可以用于分页目的的属性.使用CollectionPage,这是项目的扩展WebPage,您仍然可以声明有相关的页面.也可以扩展此属性以实现更高的语义:

<!-- The pagination link -->
<a itemprop="relatedLink/pagination" href="...">...</a>
Run Code Online (Sandbox Code Playgroud)

Relation属性

此外,查看rel="next"rel="prev"完成触及主题的标记.

例:

...
<head>
  <link rel="prev" href="http://www.example.com/article?story=abc&page=1" />
  <link rel="next" href="http://www.example.com/article?story=abc&page=3" />
  ...
Run Code Online (Sandbox Code Playgroud)

有关其他信息,请查看Google网站管理员中心博客WHATWG.