feat: updated date parsing logic
This commit is contained in:
parent
d354c2ca37
commit
68addeb938
5 changed files with 40 additions and 30 deletions
|
|
@ -6,7 +6,7 @@ layout: base.njk
|
|||
<header class="post-header">
|
||||
<h1>{{ title }}</h1>
|
||||
<time datetime="{{ createdAt | dateFormat }}">{{ createdAt | dateFormat }}</time>
|
||||
{% if updatedAt %}
|
||||
{% if updatedAt and (updatedAt | isMoreThanHourAfter(createdAt)) %}
|
||||
<p class="updated-at">Updated: <time datetime="{{ updatedAt | dateFormat }}">{{ updatedAt | dateFormat }}</time></p>
|
||||
{% endif %}
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue