1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00
Files
docs/_includes/treebuilder.html
2017-02-03 15:24:49 -08:00

13 lines
643 B
HTML

{% for section in site.data.toc.horizontalnav %}
{% assign topicFound="false" %}
{% assign activeCSS = "" %}
{% assign tree = site.data.toc[section.node] %}
<!-- path comparison: item.path: {{ item.path }} == page.path: {{ page.url }} -->
{% capture thisSection %}{% include tree.html %}{% endcapture %}
{% if section.path == page.url or thisSection contains "active currentPage" %}
{% capture leftnav %}{{ thisSection }}{% endcapture %}
{% capture activeCSS %} class="active"{% endcapture %}
{% endif %}
<li id="{{ section.node }}"{{ activeCSS }}><a href="{{ section.path }}">{{ section.title }}</a></li>
{% endfor %}