{% if pages > 1 %}
  <nav class="pagination" aria-label="Страницы ленты">
    {% if page > 1 %}<a rel="prev" href="?page={{ page - 1 }}{% if q %}&q={{ q|urlencode }}{% endif %}">← Новее</a>{% else %}<span></span>{% endif %}
    <span>{{ page }} / {{ pages }}</span>
    {% if page < pages %}<a rel="next" href="?page={{ page + 1 }}{% if q %}&q={{ q|urlencode }}{% endif %}">Старее →</a>{% endif %}
  </nav>
{% endif %}
