{% extends 'base.html' %} {% load i18n %} {% load blog_tags %} {% block title %}{% trans 'Blog' %}{% endblock %} {% block content %} {% for post in post_list %}

{{post.title}}

{{post.body|safe|truncatewords:TRUNCWORDS_COUNT}}

{% endfor %} {% if is_paginated %}
{% if page_obj.has_previous %} {% endif %} {% for page in paginator.page_range %} {{page}} {% endfor %} {% if page_obj.has_next %} {% endif %}
{% endif %}
{% endblock %}