feat: localized time on cards

This commit is contained in:
Leyla Becker 2026-02-19 17:35:13 -06:00
parent 9a80850230
commit 55e67d1e27
5 changed files with 25 additions and 3 deletions

View file

@ -13,7 +13,7 @@ permalink: /posts/
<li>
<a href="{{ post.url }}" class="post-card">
<h2>{{ post.data.title }}</h2>
<time datetime="{{ post.data.createdAt | dateTimeFormat }}">{{ post.data.createdAt | dateTimeFormat }}</time>
<time class="localizable-time" datetime="{{ post.data.createdAt | isoDateTime }}">{{ post.data.createdAt | dateTimeFormat }}</time>
{% if post.data.description %}
<p>{{ post.data.description }}</p>
{% endif %}