{% macro entryLink(entry, selEntry) %} {% if entry.type == 'link' %} {{ entry.title }} {% elseif entry.type == 'headingOnly' %} {% set nextEntry = entry.getNext() %} {% if nextEntry %} {{ entry.title }} {% else %} {{ entry.title }} {% endif %} {% else %} {{ entry.title }} {% endif %} {% endmacro %} {% from _self import entryLink %} {% set entryParent = selEntry.getParent() %} {% nav otherEntry in allEntries %} {% set parent = nav.parent ? nav.parent.otherEntry : null %} {% set show = otherEntry.depth < 3 or parent.type == 'headingOnly' or parent.id == entry.id or parent.id == entryParent.id %} {% if show %} {% if otherEntry.depth == 1 %}
{{ otherEntry.title }}
{% else %}
  • {{ entryLink(otherEntry, entry) }} {% endif %} {% endif %} {% ifchildren %} {% endifchildren %} {% if otherEntry.depth > 1 and show %}
  • {% endif %} {% endnav %}