feat: Use mobile_comment.liquid on mobile view in post.liquid
This commit is contained in:
1 parent
285de9287b
commit
e9ab66b1e4
1 file changed
+8
@@ -52,6 +52,8 @@ layout: default
|
|||||||
<h3 class="mt-4 text-lg font-medium">Comments</h3>
|
<h3 class="mt-4 text-lg font-medium">Comments</h3>
|
||||||
|
|
||||||
<div class="mt-4">
|
<div class="mt-4">
|
||||||
|
<!-- Desktop Comments -->
|
||||||
|
<div class="hidden md:block">
|
||||||
{% assign top_level_comments = site.comments | where: "post", page.slug | where_exp: "item", "item.parent == nil" | sort: "date" %}
|
{% assign top_level_comments = site.comments | where: "post", page.slug | where_exp: "item", "item.parent == nil" | sort: "date" %}
|
||||||
{% if top_level_comments.size > 0 %}
|
{% if top_level_comments.size > 0 %}
|
||||||
{% for comment in top_level_comments %}
|
{% for comment in top_level_comments %}
|
||||||
@@ -61,4 +63,10 @@ layout: default
|
|||||||
<p>No comments yet.</p>
|
<p>No comments yet.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Mobile Comments -->
|
||||||
|
<div class="block md:hidden">
|
||||||
|
{% include mobile_comment.liquid %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user