style: update post layout styling and structure

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-01 11:46:38 +08:00
1 parent a180883ee1
commit f18e1fcb23
1 file changed
+19 -6
+19 -6
View File
@@ -7,17 +7,30 @@ layout: default
</div>
<div class="flex-1 text-left">
<div>
<p class="mt-0 mb-0.5">
<p class="mt-0 mb-1">
<strong><a href="#" class="text-text-title font-normal text-base hover:underline">{{ page.title }}</a></strong>
</p>
<!-- Post title header -->
<div class="mt-0 mb-1 text-sm flex items-center">
<small class="text-text-muted text-xs"><a href="#" class="text-xs text-primary hover:underline">{{ page.author }}</a> | {{ page.date | date: "%d %b %Y" }} | <a href="#" class="text-xs text-primary hover:underline">report</a> | <a href="#" class="text-xs text-primary hover:underline">next</a> | <a href="#" class="text-xs text-primary hover:underline">{{ comment_count }} comments</a></small>
<div class="post-content mb-2">
{{ content }}
</div>
<div class="post-content">
{{ content }}
<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">
<i class="fa-solid fa-arrow-up mr-1"></i> {{ page.upvotes }}
</span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fas fa-reply mr-1"></i> REPLY
</span>
<span class="bg-gray-200 text-gray-700 text-xs font-action px-4 py-2 rounded-full flex items-center">
<i class="fas fa-comment mr-1"></i> {{ post.comments_count }}
</span>
</div>
<small class="text-sm font-action">
<a href="#" class="text-sm hover:underline">{{ page.author }}</a>
<span class="text-text-muted text-sm opacity-75">{{ page.date | date: "%d %b %Y" }}</span>
</small>
</div>
</div>
</div>