{% extends "base.html" %} {% block title %}{{ SITENAME }} | {{ category }} {% endblock %} {% block content %} {% if articles_page and articles_paginator.num_pages > 1 %}
{% if articles_page.has_previous() %} « {% endif %} {{ articles_page.number }} / {{ articles_paginator.num_pages }} {% if articles_page.has_next() %} » {% endif %}
{% for i in range (0, DEFAULT_PAGINATION ) %} {% set index = (articles_page.number - 1) * DEFAULT_PAGINATION %} {% if index + i < articles|length %} {% set article = articles[index + i] %}

{{article.title}}

{{ article.date |strftime('%d.%m.%Y') }}

---

{% endif %} {% endfor %} {% for article in articles %} {% endfor %} {% else %} {% for article in articles %}

{{article.title}}

{{ article.date |strftime('%d.%m.%Y') }}

---

{% endfor %} {% endif %} {% endblock content %}