Skip to content
Permalink
Browse files

Dont’t let breadcrumbs link to self or index.html

  • Loading branch information
da2x committed Mar 2, 2015
1 parent 751ffcd commit 7363b868e51b41f44fe2cd4d72a06ce57ad90a80
Showing with 7 additions and 1 deletion.
  1. +7 −1 nikola/data/themes/base/templates/crumbs.tmpl
@@ -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>

0 comments on commit 7363b86

Please sign in to comment.
You can’t perform that action at this time.