1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Change the order of post meta & improve timeago

This commit is contained in:
Cotes Chung
2021-03-03 18:32:06 +08:00
parent c6b0a8247b
commit d2bb423220
7 changed files with 24 additions and 14 deletions

View File

@@ -14,19 +14,18 @@ layout: default
<div class="post-meta text-muted d-flex flex-column">
<!-- Published date and author -->
<div>
{% include timeago.html date=page.date tooltip=true %}
by
<span class="author">
<span class="semi-bold">
{{ page.author | default: site.author }}
</span>
{% include timeago.html date=page.date prep="on" tooltip=true %}
</div>
<div>
<!-- lastmod -->
{% if page.last_modified_at %}
<span>
Updated
{% include timeago.html date=page.last_modified_at class="lastmod" tooltip=true %}
{% include timeago.html date=page.last_modified_at
class="lastmod" prefix="Updated" tooltip=true %}
</span>
{% endif %}