{% extends "base.html" %}
{% 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 %}
-
{{ article.summary }}
read more
{% 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 %}
- {{ page.title }}
{% endfor %}
{% endif %}
{% endblock content %}