{%comment%}{%endcomment%} {% for nav_item in include.content %} {% capture path %}{{include.base_path}}_{% increment path_counter %}{% endcapture %} {% capture class %}md-nav__item{% if nav_item.active %} md-nav__item--active %}{%endif%}{%if nav_item.children and level == 1%} md-nav__item--section{%endif%}{%endcapture%} {% if nav_item.children %} {% if site.features contains "navigation.sections" %} {% if site.features contains "navigation.tabs" %} {% if level == 2 %}{% capture class %}{{class}} md-nav__item--section{% endcapture %}{% endif %} {% else %} {% if level == 1 %}{% capture class %}{{class}} md-nav__item--section{% endcapture %}{% endif %} {% endif %} {% endif %}
  • {% if nav_item.active %}{% assign checked = "checked" %}{% endif %} {% if site.features contains "navigation.expand" and checked == nil %} {%comment%}"navigation.expand" in features = false{%endcomment%} {% else %} {% endif %}
  • {% elsif nav_item.url == page.url %}
  • {{ nav_item.title }}
  • {% else %}
  • {{ nav_item.title }}
  • {% endif %} {% endfor %}