{% assign number_of_comments = article.comments_count %} {% if comment and comment.created_at %} {% assign number_of_comments = article.comments_count %} {% endif %}

{{ article.title }}

{% capture author %}{{ article.author }}{% endcapture %} {% capture date %}{% endcapture %} {{ article.author }} @ {{ article.created_at }}
{{ article.content }}
{% if blog.comments_enabled? %}

{{ number_of_comments }} comments

{% paginate article.comments by 5 %} {% for comment in article.comments %}
{{ comment.content }}
{{ comment.author }} @ {{ comment.created_at }}
{% endfor %} {% if paginate.pages > 1 %} {{ paginate | default_pagination }} {% endif %} {% endpaginate %}
{% form 'new_comment', article %} {{ form.errors | default_errors }} {% endform %}
{% endif %}