Skip to content

Commit 1bb1682

Browse files
committed
Don't show "Index" when we're at a directory index.
1 parent 955fa28 commit 1bb1682

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

layouts/partials/breadcrumbs.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
{{ else }}
1313
{{ $label = (replaceRE "\\.[hH]tml$" "" $element) }}
1414
{{ end }}
15-
&nbsp; <a href='{{ $href }}'>{{ $label }}</a>
15+
{{ if ne (lower $label) "index" }}
16+
&nbsp; <a href='{{ $href }}'>{{ $label }}</a>
17+
{{ end }}
1618
{{ end }}
1719
{{ end }}
1820
</span>

0 commit comments

Comments
 (0)