{#- This file was automatically generated - do not edit -#} {% macro render_status(nav_item, type) %} {% set class = "md-status md-status--" ~ type %} {% if config.extra.status and config.extra.status[type] %} {% else %} {% endif %} {% endmacro %} {% macro render_content(nav_item, ref = nav_item) %} {% if nav_item.is_page and nav_item.meta.icon %} {% include ".icons/" ~ nav_item.meta.icon ~ ".svg" %} {% endif %} {{ nav_item.title }} {% if nav_item.is_page and nav_item.meta.status %} {{ render_status(nav_item, nav_item.meta.status) }} {% endif %} {% endmacro %} {% macro render_pruned(nav_item, ref = nav_item) %} {% set first = nav_item.children | first %} {% if first and first.children %} {{ render_pruned(first, ref) }} {% else %} {{ render_content(first, ref) }} {% if nav_item.children | length > 1 %} {% endif %} {% endif %} {% endmacro %} {% macro render(nav_item, path, level) %} {% set class = "md-nav__item" %} {% if nav_item.active %} {% set class = class ~ " md-nav__item--active" %} {% endif %} {% if nav_item.children %} {% set indexes = [] %} {% if "navigation.indexes" in features %} {% for nav_item in nav_item.children %} {% if nav_item.is_index and not index is defined %} {% set _ = indexes.append(nav_item) %} {% endif %} {% endfor %} {% endif %} {% if "navigation.sections" in features and level == 1 + ( "navigation.tabs" in features ) %} {% set class = class ~ " md-nav__item--section" %} {% elif not nav_item.active and "navigation.prune" in features %} {% set class = class ~ " md-nav__item--pruned" %} {% set prune = true %} {% endif %}