{%- for nav_item in nav_item.children %}
{% include "nav-sub.html" %}
{%- endfor %}
{%- else %}{# Check if there is a better way of doing this. I just want to show the parent, and the URL of the children with name index#}
{%- for nav_inner_item in nav_item.children %}
{%- if nav_inner_item.url.endswith(nav_item.title + "/") %}{# The index has the same ending as the parent#}
{{ nav_inner_item.title }}
{%- endif %}
{%- endfor %}
{%- endif %}