style: Apply consistent styling to post meta info in post.liquid
This commit is contained in:
1 parent
d65839e8ab
commit
208d7e94d3
1 file changed
+3
-12
+3
-12
@@ -7,21 +7,13 @@ layout: default
|
||||
</div>
|
||||
<div class="flex-1 text-left">
|
||||
<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>
|
||||
</p>
|
||||
|
||||
<!-- Post title header -->
|
||||
<div class="mt-0.5 mb-2 text-sm flex items-center">
|
||||
<small class="text-text-muted ml-2 text-sm hover:underline">@{{ page.author }}</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 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">reply</a> | <a href="#" class="text-xs text-primary hover:underline">{{ comment_count }} comments</a></small>
|
||||
</div>
|
||||
|
||||
<div class="post-content">
|
||||
@@ -57,4 +49,3 @@ layout: default
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user