1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Amend breadcrumbs to link to the section indexes, i.e., home/section/

Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer)
This commit is contained in:
O.S.Tezer 2014-04-16 18:20:29 +03:00
parent 24c4c3e0e9
commit b74fa75872

View file

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