38 lines
2.2 KiB
Plaintext
38 lines
2.2 KiB
Plaintext
<h3 class="mt-4 text-lg font-medium">{{ page.author }}'s comments</h3>
|
|
|
|
{% assign top_comments = site.comments | where: "parent", nil | sort: "date" %}
|
|
|
|
<div class="mt-4">
|
|
<div id="mobile-comments-list" class="space-y-0"> <!-- Removed space-y-4 -->
|
|
{% for comment in top_comments %}
|
|
<div class="border-b border-gray-200 py-4"> <!-- Added container div with border and padding -->
|
|
<p class="text-sm mb-2"> <!-- Moved "Comment on" inside -->
|
|
<span class="text-text-muted opacity-75">Comment on:</span>
|
|
<a href="#" class="text-primary font-action hover:underline">"Sample Post"</a> <!-- Placeholder link -->
|
|
</p>
|
|
<div> <!-- Removed border/padding classes from this div -->
|
|
<p class="text-sm mb-2">{{ comment.content }}
|
|
</p>
|
|
<div class="mt-2 mb-1 text-sm flex flex-col md:flex-row items-start md:items-center md:space-x-2">
|
|
<div class="flex items-start space-x-2 mb-2 md:mb-0">
|
|
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover">
|
|
<i class="fa-solid fa-arrow-up mr-1"></i> {{ comment.upvotes }}
|
|
</span>
|
|
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover">
|
|
<i class="fas fa-reply mr-1"></i> REPLY
|
|
</span>
|
|
<a href="/comments/{{ comment.slug }}" class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center cursor-pointer hover:bg-link-hover">
|
|
<i class="fas fa-comment mr-1"></i> {{ comment.replies }}
|
|
</a>
|
|
</div>
|
|
<small class="text-sm font-action">
|
|
<a href="#" class="text-sm hover:underline">{{ comment.author }}</a>
|
|
<span class="text-text-muted text-sm opacity-75">{{ comment.date | date: "%d %b %Y" }}</span>
|
|
</small>
|
|
</div>
|
|
</div>
|
|
</div> <!-- Close the container div -->
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|