fix: ensure comments are rendered correctly
This commit is contained in:
1 parent
c449c4e236
commit
838f410b4d
1 file changed
+7
-3
@@ -50,8 +50,12 @@ layout: default
|
||||
{% assign filename = page.path | split: "/" | last | replace: ".md", "" %}
|
||||
{% assign comments = site.comments | where: "post", filename | where_exp: "item", "item.parent == nil" %}
|
||||
{% endif %}
|
||||
{% for comment in comments %}
|
||||
{% include comment.liquid comment=comment level=0 %}
|
||||
{% endfor %}
|
||||
{% if comments.size > 0 %}
|
||||
{% for comment in comments %}
|
||||
{% include comment.liquid comment=comment level=0 %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>No comments yet.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user