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 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 %}
|
||||||
{% for comment in comments %}
|
{% if comments.size > 0 %}
|
||||||
{% include comment.liquid comment=comment level=0 %}
|
{% for comment in comments %}
|
||||||
{% endfor %}
|
{% include comment.liquid comment=comment level=0 %}
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
<p>No comments yet.</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user