{%- extends "layout.html" %} {% set title = _('Index') %} {% block page_navigation %} {% call macros.menu() %} {% call macros.menu_item(_("Items"), "#items") %} {% for key, _ in genindexentries %} {{ macros.menu_subitem(key, "#" + key) }} {% endfor %} {% endcall %} {% endcall %} {% endblock %} {% macro indexentries(name, links) %} {% if links %} {{ name }} {% if links[1:] %} ( {%- for is_main, link in links -%} {{ loop.index }} {%- if not loop.last%}, {% endif %} {%- endfor -%} ) {% endif %} {% else %} {{ name }} {% endif %} {% endmacro %} {% block content %}
{{ macros.h1(_("Index"), "index") }} {{ macros.h2(_("Items"), "items") }} {% for key, entries in genindexentries %} {{ macros.h3(key, key ) }} {% endfor %}
{% endblock %}