Skip to content

Commit

Permalink
Dont’t let breadcrumbs link to self or index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed Mar 2, 2015
1 parent 751ffcd commit 7363b86
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nikola/data/themes/base/templates/crumbs.tmpl
Expand Up @@ -5,7 +5,13 @@
<nav class="breadcrumbs">
<ul class="breadcrumb">
% for link, text in crumbs:
<li><a href="${link}">${text}</a></li>
% if text != 'index.html':
% if link == '#':
<li>${text}</li>
% else:
<li><a href="${link}">${text}</a></li>
% endif
% endif
% endfor
</ul>
</nav>
Expand Down

0 comments on commit 7363b86

Please sign in to comment.