{% if __SELF__.post %}
{% if __SELF__.post.featured_images.count %}
{{ __SELF__.post.featured_images[0].description }}
{% endif %}

{{ __SELF__.post.title }}

{{ __SELF__.post.content|raw }} {% if __SELF__.post.excerpt %}
{{ __SELF__.post.excerpt }}
{% endif %}
{% if __SELF__.authorPage %} {% else%}{% endif %}{{ __SELF__.post.user.fullname }}{% if __SELF__.authorPage %}{% else %}{% endif %} {{ __SELF__.post.category.name }} {% if __SELF__.post.tags.count %} {% for tag in __SELF__.post.tags %} {{ tag.name }}{% if not loop.last %}, {% endif %} {% endfor %} {% endif %} {% if user %} {% endif %}
{% endif %}
{% partial __SELF__ ~ '::comments' %}
{% if user and __SELF__.post %}

{{ 'Leave a comment'|_ }}

{{ form_ajax('onAddComment', { 'success': "$('#body').val('')", 'update': { '@comments': '#comments' } }) }}
{{ form_close() }}
{% endif %}