{% if site.data.navigation.chapters[0] %} {% for chapter in site.data.navigation.chapters %}

    {{ chapter.title }}

    {% if chapter.sections[0] %}
      {% for section in chapter.sections %} {% if section.entries[0] %}
    • {{ section.page }} {% if section.page == page.title %}
    • {% else %}
      {% endif %} {% for entry in section.entries %}
    • {{ entry.page }}
    • {% endfor %}
      {% else %}
    • {{ section.page }} {% endif %} {% endfor %}
    {% endif %} {% endfor %} {% endif %}