{% include helper/breadcrumb.html %}

Bausteine

{% include helper/breadcrumb.html %}

Breadcrumb


{% 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">
 <a href="{{ site.url }}{{ site.baseurl }}">{{ include.start | default: 'Start' }}</a>
 {% assign crumbs = page.url | split: '/' %}
   {% for crumb in crumbs offset: 1 %}
    {% if forloop.last %}
        › <a class="current">{{ page.title }}</a>
    {% else %}
        <a href="{{ site.url }}{{ site.baseurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace:'-',' ' }}</a>
    {% endif %}
  {% endfor %}
</nav>