{%- for inner in tag.pages | sort(attribute="date") %} {%- if inner.content == page.content %} {{ inner.title }}
{%- set_global current_section_index = loop.index0 %} {# Finds the current section, needed for pagination logic later #} {%- else %} {{ inner.title }}
{%- endif %} {%- endfor %}