2017-07-05 18:30:39 +02:00
|
|
|
{% case site.category_archive.type %}
|
2016-03-11 21:54:16 +01:00
|
|
|
{% when "liquid" %}
|
|
|
|
{% assign path_type = "#" %}
|
|
|
|
{% when "jekyll-archives" %}
|
|
|
|
{% assign path_type = nil %}
|
|
|
|
{% endcase %}
|
|
|
|
|
|
|
|
{% if page.collection != 'posts' %}
|
|
|
|
{% assign path_type = nil %}
|
|
|
|
{% assign crumb_path = '/' %}
|
|
|
|
{% else %}
|
2017-07-05 18:30:39 +02:00
|
|
|
{% assign crumb_path = site.category_archive.path %}
|
2016-03-11 21:54:16 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2016-03-05 04:57:12 +01:00
|
|
|
<nav class="breadcrumbs">
|
|
|
|
<ol itemscope itemtype="http://schema.org/BreadcrumbList">
|
|
|
|
{% assign crumbs = page.url | split: '/' %}
|
|
|
|
{% assign i = 1 %}
|
|
|
|
{% for crumb in crumbs offset: 1 %}
|
|
|
|
{% if forloop.first %}
|
|
|
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
2016-10-06 21:40:30 +02:00
|
|
|
<a href="{{ site.url }}{{ site.baseurl }}/" itemprop="item"><span itemprop="name">{{ site.data.ui-text[site.locale].breadcrumb_home_label | default: "Home" }}</span></a>
|
2016-03-05 04:57:12 +01:00
|
|
|
<meta itemprop="position" content="{{ i }}" />
|
|
|
|
</li>
|
2016-07-29 18:16:53 +02:00
|
|
|
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
2016-03-05 04:57:12 +01:00
|
|
|
{% endif %}
|
|
|
|
{% if forloop.last %}
|
|
|
|
<li class="current">{{ page.title }}</li>
|
|
|
|
{% else %}
|
|
|
|
{% assign i = i | plus: 1 %}
|
|
|
|
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
2018-03-20 16:35:36 +01:00
|
|
|
<a href="{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path | relative_url }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
2016-03-05 04:57:12 +01:00
|
|
|
<meta itemprop="position" content="{{ i }}" />
|
|
|
|
</li>
|
2016-07-29 18:16:53 +02:00
|
|
|
<span class="sep">{{ site.data.ui-text[site.locale].breadcrumb_separator | default: "/" }}</span>
|
2016-03-05 04:57:12 +01:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
</ol>
|
2017-07-05 18:30:39 +02:00
|
|
|
</nav>
|