feat: updated date parsing logic

This commit is contained in:
Leyla Becker 2026-02-10 15:56:01 -06:00
parent d354c2ca37
commit 68addeb938
5 changed files with 40 additions and 30 deletions

View file

@ -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>