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:
commit
2f3cccfcbd
1 changed files with 2 additions and 6 deletions
8
docs/theme/mkdocs/breadcrumbs.html
vendored
8
docs/theme/mkdocs/breadcrumbs.html
vendored
|
@ -2,13 +2,9 @@
|
||||||
<li><a href="{{ homepage_url }}"><span class="glyphicon glyphicon-home"></span></a></li>
|
<li><a href="{{ homepage_url }}"><span class="glyphicon glyphicon-home"></span></a></li>
|
||||||
{% for section in nav %}
|
{% for section in nav %}
|
||||||
{% if section.active %}
|
{% if section.active %}
|
||||||
|
<li><a href="../">{{ section.title }}</a></li>
|
||||||
{% if section.children %}
|
{% if section.children %}
|
||||||
{% for page in section.children[:1] %}
|
<li class="active"><a href="{{ current_page.url }}">{{ current_page.title }}</a></li>
|
||||||
<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>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue