feat: Add upvote count and move author info to bottom

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-01 05:08:40 +08:00
1 parent 49cbaf298a
commit 706c3572ff
1 file changed
+8 -4
+8 -4
View File
@@ -31,17 +31,21 @@
<strong><a href="{{ post.url }}" class="text-text-title font-normal text-base hover:underline">{{ post.title }}</a></strong> <strong><a href="{{ post.url }}" class="text-text-title font-normal text-base hover:underline">{{ post.title }}</a></strong>
</p> </p>
<div class="mt-0 mb-1 text-sm flex items-center"> <div class="mt-0 mb-1 text-sm flex items-center">
<small class="text-xs font-action"><a href="#" class="text-xs hover:underline">{{ post.author }}</a> <span class="text-text-muted text-xs opacity-75">{{ post.date | date: "%d %b %Y" }}</span></small> <span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 mr-2 rounded-full flex items-center">
<i class="fa-solid fa-arrow-up"></i> {{ post.upvotes }}
</span>
<div class="flex items-center space-x-2 ml-2"> <div class="flex items-center space-x-2 ml-2">
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center"> <span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-flag mr-1"></i> report <i class="fas fa-flag mr-1"></i>
</span> </span>
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center"> <span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-reply mr-1"></i> reply <i class="fas fa-reply mr-1"></i>
</span> </span>
<span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center"> <span class="bg-gray-200 text-gray-700 text-xs px-2 py-1 rounded-full flex items-center">
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }} comments <i class="fas fa-comment mr-1"></i> {{ post.comments_count }}
</span> </span>
<small class="text-xs font-action"><a href="#" class="text-xs hover:underline">{{ post.author }}</a> <span class="text-text-muted text-xs opacity-75">{{ post.date | date: "%d %b %Y" }}</span></small>
</div> </div>
</div> </div>
</div> </div>