{% if site.repository and site.staticman.branch %} {% if site.data.comments[page.slug] %}

{% if site.data.comments[page.slug].size > 1 %}{{ site.data.comments[page.slug] | size | append: ' ' }}{% endif %}Comments

{% assign comments = site.data.comments[page.slug] | sort | where_exp: 'comment', 'comment[1].replying_to == blank' %} {% for comment in comments %} {% assign index = forloop.index %} {% assign replying_to = comment[1].replying_to | to_integer %} {% assign avatar = comment[1].avatar %} {% assign email = comment[1].email %} {% assign name = comment[1].name %} {% assign url = comment[1].url %} {% assign date = comment[1].date %} {% assign message = comment[1].message %} {% include comment.html index=index replying_to=replying_to avatar=avatar email=email name=name url=url date=date message=message %} {% endfor %}
{% endif %} {% endif %}