{% if nav|length > 1 %} {% for top_item in nav %}
{% if top_item.children %}

{{ top_item.title }}

{% for sidebar_item in top_item.children %} {% include "components/bottom_sidebar_item.html" %} {% endfor %}
{% else %} {% with sidebar_item = top_item %} {% include "components/bottom_sidebar_item.html" %} {% endwith %} {% endif %}
{% endfor %} {% endif %}