{% extends "index.html" %} {% block content %} {# ===== content ===== #} {{ macros::replace_toc(resource=section) | safe }} {# ===== child pages and sections ===== #} {% if not section.extra.list_pages %} PAGES {% for article in section.pages %} {{ article.title }} {% endfor %} {% endif %} {% if not section.extra.list_subsections %} SUBSECTIONS {% for section in section.subsections %} {% set section = get_section(path=section, metadata_only=true) %} {{ section.title }} {% endfor %} {% endif %} {% endblock content %} {{ macros::format_content(resource=section) }}