{% comment %} Comment template - displays a single comment and its nested replies {% endcomment %}
▲ @{{ comment.author }} {{ comment.date | date: "%b %d, %Y" }} | parent | next

{{ comment.content }}

reply
{% comment %} Find and render any replies to this comment We need to get the filename without extension to match the parent field {% endcomment %} {% assign comment_filename = comment.path | split: "/" | last | replace: ".md", "" %} {% assign replies = site.comments | where: "parent", comment_filename | sort: "date" %} {% for reply in replies %}
{% include comment.liquid comment=reply %}
{% endfor %}