{% if pages %}
{% set comm_pages = [] %}
{% set god_pages = [] %}
{% set concept_pages = [] %}
{% for p in pages %}
{% if p.doc_section == "communities" or (p.url and p.url.startswith("communities/")) %}
{% set _ = comm_pages.append(p) %}
{% elif p.doc_section == "god-nodes" or (p.url and p.url.startswith("god-nodes/")) %}
{% set _ = god_pages.append(p) %}
{% elif p.doc_section != "Overview" and p.url not in ("index.html", "architecture-report.html") %}
{% set _ = concept_pages.append(p) %}
{% endif %}
{% endfor %}
{% if comm_pages %}
{% endif %}
{% if god_pages %}
{% endif %}
{% if concept_pages %}
{% endif %}
{% endif %}