{% extends 'blog/base.html' %} {% load url from future %} {% block extra_head %} {{ block.super }} {% if post %} {% else %} {% endif %} {% endblock extra_head %} {% block form_content %} {% for post in page.object_list %} {% include 'blog/post.inc.html' %} {% if not forloop.last %}
{% endif %} {% endfor %} {% if page.has_previous or page.has_next %} {% if page.object_list|length > 1 %}
{% endif %}
{% if page.has_previous %} ← Newer blog posts {% endif %} {% if page.has_next %} Older blog posts → {% endif %}
{% endif %} {% endblock form_content %}