{% extends "base.html" %} {% block robots %}noindex,follow{% endblock %} {% block content_title %}{% endblock %} {% block content %} {% if articles %} {% for article in articles_page.object_list %} {# First item #} {% if loop.first and not articles_page.has_previous() %} {% if loop.length > 1 %}

    {% endif %} {# other items #} {% else %} {% if loop.first and articles_page.has_previous %}
      {% endif %}
    1. {% endif %} {% if loop.last %}
    {% if loop.last and (articles_page.has_previous() or not articles_page.has_previous() and loop.length > 1) %} {% include 'pagination.html' %} {% endif %}
    {% endif %} {% endfor %} {% else %}

    Pages

    {% for page in PAGES %}
  1. {{ page.title }}
  2. {% endfor %}
    {% endif %} {% endblock content %}