{%-if site.show.comments == true-%}
{% assign comments = site.data.comments[page.type][page.slug]-%} {%-if comments %}

Comments ({{-comments.size-}})

{%-assign comments = comments | where: "parent_id", ""-%} {%-assign comments = comments | sort: 'date'-%} {% for comment in comments-%} {% include comment.html comment_fragment="comment" nesting=0 %} {%-endfor %} {%-else %}

{{ site.comments.add_comment_message | default: "Woohoo, looks like you'll be the first to comment!" }}

{%-endif %}
{% include comment_form.html %}
{%-endif %}