summaryrefslogtreecommitdiff
path: root/design/templates/lib/breadcrumbs.html
blob: 025b8e4c30bdf5c68720c3fd7e0f734158bb46f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<nav class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
        <span class="nav-item" itemprop="item">
            <a href="/" itemprop="name">Home</a>
            <meta itemprop="position" content="1" />
        </span>{% for crumb in breadcrumbs %}{% if crumb_url %}
        <span class="nav-item" itemprop="item">
            <a href="{{crumb_url}}" itemprop="name">{{crumb}}</a>
            <meta itemprop="position" content="{{ forloop.counter|add:"+1" }}" />
        </span>{% else %}
        <span class="nav-item" itemprop="item">
            <span itemprop="name">{{crumb}}</span>
            <meta itemprop="position" content="2" />
        </span>{% endif %}{%endfor%}
    </nav>