{# Demonstrates: a listing page. pages() finds pages, paginate() splits the list into pages of five: /, /page/2/, ... #} {% extends "base.html" %} {% block main %}

{{ page.title }}

{{ page.content }} {% set pg = paginate(pages("**"), 5) %} {% for p in pg.items %}

{{ p.title }}

{% if p.published %}

{% endif %} {% if p.summary_lang != p.lang %}
{{ p.summary }}
{% else %} {{ p.summary }} {% endif %}
{% endfor %} {% endblock %}