Created
June 16, 2017 07:43
-
-
Save pagemashine/5279b7ed410542993dbbe979e7d5838e to your computer and use it in GitHub Desktop.
breadcrumbs микроразметка
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="b-path" sktag="menu.path"> | |
<ul itemscope itemtype="http://schema.org/BreadcrumbList"> | |
{% if main_page %} | |
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" sktag="menu.path.a"> | |
<a itemprop="item" href="/"><span itemprop="name">{{ main_page.title }}</span></a> | |
<meta itemprop="position" content="{{ loop.index }}" /> | |
</li> | |
{% endif %} | |
{%for item in items%} | |
{% if item.selected %} | |
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" sktag="menu.path.item"> | |
<span itemprop="item" itemprop="name">{{item.title}}</span> | |
<meta itemprop="position" content="{{ loop.index }}" /> | |
</li> | |
{% else %} | |
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" sktag="menu.path.a"> | |
<a itemprop="item" href="{{item.href}}"><span itemprop="name">{{item.title}}</span></a> | |
<meta itemprop="position" content="{{ loop.index }}" /> | |
</li> | |
{% endif %} | |
{% endfor %} | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment