Merge pull request #5231 from ostezer/fix-breadcrumbs

Amend breadcrumbs to link to the section indexes, i.e., home/:section/
This commit is contained in:
Sven Dowideit 2014-04-17 08:40:40 +10:00
commit 2f3cccfcbd

View file

@ -2,11 +2,7 @@
<li><a href="{{ homepage_url }}"><span class="glyphicon glyphicon-home"></span></a></li>
{% for section in nav %}
{% if section.active %}
{% if section.children %}
{% for page in section.children[:1] %}
<li><a href="{{ page.url }}">{{ section.title }}</a></li>
{% endfor %}
{% endif %}
<li><a href="../">{{ section.title }}</a></li>
{% if section.children %}
<li class="active"><a href="{{ current_page.url }}">{{ current_page.title }}</a></li>
{% endif %}