Added comment layout
This commit is contained in:
1 parent
3b908b8ce6
commit
15ad89fb13
15 files changed
+146
-22
No files matched your search
+1
-20
@@ -49,24 +49,5 @@ layout: default
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<h3 class="mt-4 text-lg font-medium">Comments</h3>
|
||||
|
||||
<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" %}
|
||||
{% if top_level_comments.size > 0 %}
|
||||
{% for comment in top_level_comments %}
|
||||
{% include comment.liquid comment=comment %}
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>No comments yet.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<!-- Mobile Comments -->
|
||||
<div class="block md:hidden">
|
||||
{% include mobile_comment.liquid %}
|
||||
</div>
|
||||
</div>
|
||||
{% include mobile_comment_top.liquid %}
|
||||
</div>
|
||||
Reference in new issue
Block a user