Skip to content

Commit 82ef583

Browse files
author
Lutz
committed
Fix hide breadcrumbs at root - homepage
1 parent 8821298 commit 82ef583

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

_includes/nav-breadcrumbs.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1-
{% assign position = 0 %}
1+
{% capture url %}{{ page.url | remove: "/" | remove: page.language }}{% endcapture %}
2+
{% if url.size > 0 %}
23
<nav class="breadcrumbs hidden-sm-down">
34

4-
{% assign lastcrumb = breadcrumbs | last %}
5-
{% if lastcrumb.url != "/" %}
6-
{% include icon.html class="breadcrumb-item" %}
7-
{% endif %}
5+
{% include icon.html class="breadcrumb-item" %}
86

97
<ol class="breadcrumb" vocab="http://schema.org/" typeof="BreadcrumbList">
8+
{% assign position = 0 %}
109
{% for crumb in breadcrumbs %}
1110

1211
{% if crumb.url == "/" %}
@@ -32,3 +31,4 @@
3231
</ol>
3332

3433
</nav>
34+
{% endif %}

0 commit comments

Comments
 (0)