Skip to content

Instantly share code, notes, and snippets.

@antlis
Last active July 11, 2019 05:40
Show Gist options
  • Save antlis/e4b5ee00f5f61c4c5bca21a25415bf54 to your computer and use it in GitHub Desktop.
Save antlis/e4b5ee00f5f61c4c5bca21a25415bf54 to your computer and use it in GitHub Desktop.
[[- https://stackoverflow.com/questions/54362229/getting-seo-errors-with-breadcrumblist]]
[[pdoCrumbs?
&tplWrapper=`@INLINE
<nav class="breadcrumb">
<ol class="breadcrumb__list" itemscope itemtype="http://schema.org/BreadcrumbList">
[[+output]]
</ol>
</nav>`
&tpl=`@INLINE
<li class="breadcrumb__list-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a class="breadcrumb__item" itemtype="https://schema.org/Thing" itemprop="item" href="[[+link]]" title="[[+menutitle]]">
<span itemprop="name">[[+menutitle]]</span>
</a>
<meta itemprop="position" content="[[+idx]]">
</li>`
&tplCurrent=`@INLINE
<li class="breadcrumb__list-item" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem" aria-current='location'>
<span class="breadcrumb__item breadcrumb__item--current" itemprop="name">[[+menutitle]]</span>
<link itemprop="item" href="[[+link]]" />
<meta itemprop="position" content="[[+idx]]">
</li>
`
&outputSeparator=`<li><span class="breadcrumb__separator">&nbsp;&nbsp;/&nbsp;</span></li>`
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment