我正在为一个客户的网站制作面包屑导航,我问自己主页是否必须在其代码中。
那么,这样做是否更好:
带有主页和当前链接
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://someclient.fr/" itemprop="url">
<span itemprop="title">Accueil</span>
</a>
>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://someclient.fr/annonces" itemprop="url">
<span itemprop="title">Annonces</span>
</a>
>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://someclient.fr/annonces/category" itemprop="url">
<span itemprop="title">Categorie</span>
</a>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://someclient.fr/annonces/category/produit" itemprop="url">
<span itemprop="title">Produit</span>
</a>
</div>
没有主页和当前页面的链接
<a href="http://someclient.fr/" itemprop="url">Accueil</a> >
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://someclient.fr/annonces" itemprop="url">
<span itemprop="title">Annonces</span>
</a>
>
</div>
<div itemscope itemtype="http://data-vocabulary.org/Breadcrumb">
<a href="http://someclient.fr/annonces/category" itemprop="url">
<span itemprop="title">Category</span>
</a>
</div>
<a href="http://someclient.fr/annonces/category/produit" itemprop="url">Produit</a>
您可以使用 Google 结构化数据测试工具 (http://www.google.com/webmasters/tools/richsnippets) 尝试此代码,您会发现我的第一个示例未呈现主页。
那么,最好的解决方案是什么?你如何为你的网站做的?
谢谢!
最佳答案
对于 seo 来说,没有那个链接会更好,因为你会有两个主页链接,另一个链接是你所在的同一页面......
关于seo - 如何在面包屑中插入主页和当前页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16020128/