17 lines
716 B
HTML
17 lines
716 B
HTML
{% comment %}
|
||
*
|
||
* http://stackoverflow.com/questions/9612235/what-are-some-good-ways-to-implement-breadcrumbs-on-a-jekyll-site
|
||
*
|
||
{% endcomment %}
|
||
|
||
<nav class="breadcrumbs" role="menubar" aria-label="breadcrumbs">
|
||
<li><a href="{{ site.url }}">{{ site.data.language.breadcrumb_start }}</a></li>
|
||
{% assign crumbs = page.url | split: '/' %}
|
||
{% for crumb in crumbs offset: 1 %}
|
||
{% if forloop.last %}
|
||
<li class="current">{{ page.title }}</li>
|
||
{% else %}
|
||
<li><a href="{{ site.url }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace:'-',' ' }}</a>
|
||
{% endif %}
|
||
{% endfor %}
|
||
</nav>
|