Add datetime attribute to time elements
This commit is contained in:
1 parent
b0bc736a7e
commit
fb94864b15
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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>
|
||||
|
||||
|
||||
Reference in new issue
Block a user