style: Apply consistent styling to post meta info in post.liquid

This commit is contained in:
Kerby Martino (aider) committed 2025-04-30 17:12:34 +08:00
1 parent d65839e8ab
commit 208d7e94d3
1 file changed
+3 -12
+3 -12
View File
@@ -7,21 +7,13 @@ layout: default
</div> </div>
<div class="flex-1 text-left"> <div class="flex-1 text-left">
<div> <div>
<p> <p class="mt-0 mb-0.5">
<strong><a href="#" class="text-text-title font-normal text-base hover:underline">{{ page.title }}</a></strong> <strong><a href="#" class="text-text-title font-normal text-base hover:underline">{{ page.title }}</a></strong>
</p> </p>
<!-- Post title header --> <!-- Post title header -->
<div class="mt-0.5 mb-2 text-sm flex items-center"> <div class="mt-0 mb-1 text-sm flex items-center">
<small class="text-text-muted ml-2 text-sm hover:underline">@{{ page.author }}</small> <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">reply</a> | <a href="#" class="text-xs text-primary hover:underline">{{ comment_count }} comments</a></small>
{% assign filename = page.path | split: "/" | last | replace: ".markdown", "" | replace: ".md", "" %}
{% if page.slug %}
{% assign post_id = page.slug %}
{% else %}
{% assign post_id = filename %}
{% endif %}
{% assign comment_count = site.comments | where: "post", post_id | size %}
<small class="text-text-muted ml-2 text-sm">{{ page.date | date: "%B %d, %Y" }} | <a href="#" class="ml-2 text-xs text-primary hover:underline">report</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">next</a> | <a href="#" class="ml-2 text-xs text-primary hover:underline">{{ comment_count }} comments</a></small>
</div> </div>
<div class="post-content"> <div class="post-content">
@@ -57,4 +49,3 @@ layout: default
{% endif %} {% endif %}
</div> </div>
</div> </div>