{% load custom_tags %} {% load i18n %} {% for object in object_list %} {% if object|object_type == 'BlogPost' %}

{{ object.name }}

by {{ object.author }}

Posted on {{ object.date }}



{{ object.text }}

Read More
{% else %}
{% if LANGUAGE_CODE == 'en' %}

{{ object.name }}

{% else %}

{{ object.nameUA }}

{% endif %}
{% trans "More" %} {% if LANGUAGE_CODE == 'en' %}

{{ object.description|slice:"0:100" }}

{% else %}

{{ object.descriptionUA|slice:"0:100" }}

{% endif %}
{% endif %} {% endfor %}