Sha256: ccbe0522b5d0d7f061dde7278399ba7cb33bdadfa8563060a79ee5557f93fab2

Contents?: true

Size: 1.24 KB

Versions: 7

Compression:

Stored size: 1.24 KB

Contents

<nav>
  <ul class="navigation-list">
  {% assign pages_list = site.html_pages | sort:"nav_order" %}
  {% for node in pages_list %}
      <li class="navigation-list-item{% if page.url == node.url %} active{% endif %} js-side-nav-item">
        {% if node.parent == nil or node.has_children == true %}
        <a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url or (page.parent != nil and page.parent == node.parent) %} active{% endif %}">{{ node.title }}</a>
          {% if (node.has_children == true and node.parent == page.parent) %}
            {% assign children_list = site.html_pages | sort:"nav_order" %}
            <ul class="navigation-list-child-list">
              {% for child in children_list %}
                {% if child.parent == node.parent and child.title != node.title %}
                <li class="navigation-list-item {% if page.url == child.url %} active{% endif %}">
                  <a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
                </li>
                {% endif %}
              {% endfor %}
            </ul>
          {% endif %}
        {% endif %}
      </li>
  {% endfor %}
  </ul>
</nav>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
just-the-docs-0.1.6 _includes/nav.html
just-the-docs-0.1.5 _includes/nav.html
just-the-docs-0.1.4 _includes/nav.html
just-the-docs-0.1.3 _includes/nav.html
just-the-docs-0.1.2 _includes/nav.html
just-the-docs-0.1.1 _includes/nav.html
just-the-docs-0.1.0 _includes/nav.html