{% load automarkup %} {% for post in page_obj %}
{{ forloop.counter0|add:start_index }} of {{ count }}
Image for {{ post.slug }}

{{ post.title }} {% if post.status == post.DRAFT %} {% elif post.status == post.DELISTED %} {% endif %}

{% for category in post.categories.all %}{{ category }}{% if not forloop.last %} - {% endif %}{% endfor %}
Posted on {{ post.date_posted|date:"Y-m-d" }}
by {{ post.posted_by.first_name }} {{ post.posted_by.last_name }}
{% empty %} No posts found {% endfor %} {% if page_obj.has_next %}
{% endif %}