diff --git a/_includes/mobile_comment.liquid b/_includes/mobile_comment.liquid index 0c851f6..d20a12d 100644 --- a/_includes/mobile_comment.liquid +++ b/_includes/mobile_comment.liquid @@ -1,8 +1,147 @@ {% comment %} Mobile Comment View: Renders a flat list of top-level comments for the current post. + Assumes JavaScript will handle the navigation to nested replies using fragment identifiers. {% endcomment %} -{% assign top_comments = site.comments | where: "parent", nil | sort: "date" %} +{% assign post_comments = site.comments | where: "post", page.slug %} +{% assign top_level_comments = post_comments | where_exp: "item", "item.parent == nil or item.parent == ''" | sort: "date" %} -{% for comment in top_comments %} -{% endfor %} \ No newline at end of file +
{{ comment.content | default: "Missing content" }}
+No comments yet.
+ {% endif %} +