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
+4
+4
View File
@@ -50,8 +50,12 @@ layout: default
{% assign filename = page.path | split: "/" | last | replace: ".md", "" %} {% assign filename = page.path | split: "/" | last | replace: ".md", "" %}
{% assign comments = site.comments | where: "post", filename | where_exp: "item", "item.parent == nil" %} {% assign comments = site.comments | where: "post", filename | where_exp: "item", "item.parent == nil" %}
{% endif %} {% endif %}
{% if comments.size > 0 %}
{% for comment in comments %} {% for comment in comments %}
{% include comment.liquid comment=comment level=0 %} {% include comment.liquid comment=comment level=0 %}
{% endfor %} {% endfor %}
{% else %}
<p>No comments yet.</p>
{% endif %}
</div> </div>
</div> </div>