update breadcrumb
This commit is contained in:
parent
c6a1ba7c1d
commit
326569fca7
1 changed files with 2 additions and 2 deletions
|
@ -6,14 +6,14 @@
|
|||
{% endcomment %}
|
||||
|
||||
<nav class="breadcrumbs" role="menubar" aria-label="breadcrumbs">
|
||||
<li><a href="/">{{ site.data.language.breadcrumb_start }}</a></li>
|
||||
<li><a href="{{ site.url }}">{{ site.data.language.breadcrumb_start }}</a></li>
|
||||
{% assign crumbs = page.url | split: '/' %}
|
||||
{% assign crumbs_total = crumbs | size | minus: 1 %}
|
||||
{% for crumb in crumbs offset: 1 %}
|
||||
{% if forloop.index == crumbs_total %}
|
||||
<li class="current">{{ page.title }}</li>
|
||||
{% else %}
|
||||
<li><a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace:'-',' ' }}</a>
|
||||
<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>
|
Reference in a new issue