{% 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() %}

{{ article.title }}

{% include 'article_infos.html' %}{{ article.content }}{% include 'article_infos_bottom.html' %}{% include 'comments.html' %}
{% if loop.length == 1 %} {% include 'pagination.html' %} {% endif %} {% if loop.length > 1 %}
{% endif %} {# other items #} {% else %}

{{ article.title }}

{% include 'article_infos.html' %}{{ article.summary }}{% include 'article_infos_bottom.html' %}{% include 'comments.html' %} 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 %}