{% extends "base.html" %} {% block content_title %}{% endblock %} {% block content %} {% if articles %} {% for article in articles_page.object_list %} {{ article.title }} {{ article.summary }} read more {% endfor %} {% else %} Pages {% for page in PAGES %} {{ page.title }} {% endfor %} {% endif %} {% endblock %}