{% extends "base.html" %} {% load i18n blogpost %} {% block header %}{% trans "Blog" %} {% if category %}- {{ category.name }}{% endif %}{% endblock %} {% block content %} {% categories_list active_category %} {% if category %} {{ category.content }} {% endif %} {% if object_list %} {% for object in object_list %} {% if forloop.counter|divisibleby:"2" %} {% blogpost_list_item object 'left' %} {% else %} {% blogpost_list_item object 'right' %} {% endif %} {% endfor %} {% if paginator.num_pages > 1 %} {% endif %} {% else %}
{% trans "No posts yet.." %}
{% endif %} {% endblock %}