diff --git a/_includes/comment.liquid b/_includes/comment.liquid index faf313f..b32aeb8 100644 --- a/_includes/comment.liquid +++ b/_includes/comment.liquid @@ -13,15 +13,14 @@ 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" %} + {% assign replies = site.comments | where: "parent", comment.slug | sort: "date" %} +
comment_slug: {{ comment.slug }}
{% for reply in replies %} +
parent: {{ reply.parent }}
+
slug: {{ reply.slug }}
+ {% include comment.liquid comment=reply %}
{% endfor %}