{% extends 'base.html' %} {% load i18n %} {% block content %}
{% for post in object_list %}

{{ post.title }}

{% if post.image %} {{ post.title }} {% endif %} {% if post.short_desc %} {{ post.short_desc|truncatewords_html:40|safe }} {% else %} {{ post.article|truncatewords_html:40|safe }} {% endif %}

{% trans "Read more" %}

{% trans "Posted on" %} {{post.pub_date|date:"d E Y"}} {% if post.categories.exists %} {% trans "in categories" %} {% for category in post.categories.all %}{{category.title}} {% if not forloop.last %}, {% endif %} {% endfor %}{% endif %}

{% empty %}

{% trans "No posts found." %}

{% endfor %}
{% endblock %}