{% extends "base.html" %} {% block content %} {% if section_nav %} {% for item in section_nav %} {% set item_path = '/' if item.is_index else '/' + item.slug + '/' %} {% set is_active = request.path == item_path or (not item.is_index and request.path.startswith('/' + item.slug)) %} {{ item.title }} {% endfor %} {% endif %} {% block area_content %}{% endblock %} {% endblock %}