{% extends "base.html" %} {% load xhtml11rst %} {% load comments %} {% block extrahead %} {% endblock %} {% block content %} {% if entries %} {% for entry in entries %}
Posted: {{ entry.publish_date|date:"Y-m-d H:i" }} in {% for section in entry.sections.all %} {% if forloop.first %} {{ section.title }}{% if not forloop.last %}, {% endif %} {% else %} {% if forloop.last %} and {{ section.title }} {% else %} {{ section.title }} {% endif %} {% endif %} {% endfor %} {% get_comment_count for entry as comment_count %} | permalink | Comments: {{ comment_count }}
{% endfor %} {% if paginated and has_more_than_one_page %}Pages: {% if has_prev %} Previous | {% endif %} {% for paginator_page in pages %} {% if forloop.first %} {% else %} | {% endif %} {% ifequal paginator_page page %} {{ page }} {% else %} {{ paginator_page }} {% endifequal %} {% endfor %} {% if has_next %} | Next {% endif %}
{% endif %} {% else %}We have no blog entries - that sucks!
{% endif %} {% endblock %}