Add datetime attribute to time elements

This commit is contained in:
Lewis Dale committed 2023-11-28 21:13:07 +00:00
1 parent b0bc736a7e
commit fb94864b15
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -26,7 +26,7 @@ layout: base.njk
<ul class="stack-2xs" role='list'>
{% for post in posts | take(3) %}
<li><a href="/post/{{ post.slug }}">{{ post.title.rendered | safe }}</a> <time>{{ post.date | dateDisplay }}</time></li>
<li><a href="/post/{{ post.slug }}">{{ post.title.rendered | safe }}</a> <time datetime="{{ post.date }}">{{ post.date | dateDisplay }}</time></li>
{% endfor %}
</ul>