{# Global alphabetical index #} {%- extends "layout.html" %} {%- set title = _('Index') %} {%- macro indexentries(firstname, links) -%} {%- if links -%} {%- if links[0][0] -%} {%- endif -%} {{ firstname|e }} {%- if links[0][0] -%} {%- endif -%} {%- for ismain, link in links[1:] -%} , {%- if ismain -%}{%- endif -%} [{{ loop.index }}] {%- if ismain -%}{%- endif -%} {%- endfor -%} {%- else -%} {{ firstname|e }} {%- endif -%} {%- endmacro -%} {%- block body %}

{{ _('Index') }}

{%- for letter, entries in genindexentries %} {{ letter }} {%- if not loop.last -%}| {%- endif -%} {%- endfor %}
{%- for letter, entries in genindexentries %} {# #}

{{ letter }}

{%- endfor %} {%- endblock -%}