{%- capture article_class %}js-comment comment{% if include.name == site.author.name %} admin{% endif %}{% if include.is_reply %} child{% endif %}{% endcapture %} {% assign comment_id = include.uid | prepend: 'comment-' %}
{{ include.name }}

{{- include.name | strip_html -}}

{%- if include.date -%} {{- include.date | date:"%B %eth, %Y %H:%M" -}} {%- endif -%}
{{ include.message | strip_html | markdownify | replace: ' ↪︎ Reply to {{ include.name }}
{%- capture this_uid %}{{ include.uid }}{% endcapture %} {%- assign replies = site.data.comments[page.slug] | where_exp: 'item', 'item.replying_to_uid == this_uid' %} {%- assign replies_date = replies | sort: 'date' %} {% for reply in replies_date %} {%- assign email = reply.email -%} {%- assign name = reply.name -%} {%- assign url = reply.url -%} {%- assign date = reply.date -%} {%- assign message = reply.message -%} {%- assign uid = reply._id -%} {% include comment.html is_reply=true uid=uid email=email name=name url=url date=date message=message %} {% endfor %} {% if include.is_reply %} {% else %}
{% endif %}