fix: ensure comments are rendered correctly

This commit is contained in:
Kerby Martino (aider) committed 2025-04-29 09:34:00 +08:00
1 parent c449c4e236
commit 838f410b4d
1 file changed
+7 -3
+7 -3
View File
@@ -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>