{% with a=post.author %}
{% if a %}
{% firstof a.avatar.url a.avatar as ava_url %}
{% if ava_url %}
{% else %}{% endif %}
{% else %}
{% endif %}
{% endwith %}
{% if post.pinned %}
закреплено
{% endif %}
{% firstof post.title "Без названия" %}
{{ post.body|linebreaks }}
{% if post.attachment %}
{% firstof post.attachment.url post.attachment as att_url %}
{% if att_url %}
{% endif %}
{% endif %}
Комментарии
({{ comments|length }})