Skip to content

Commit ea13202

Browse files
Update time element attributes for better semantics
1 parent b42ec7d commit ea13202

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/_includes/layouts/post.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
<div class="flex items-center gap-1 text-sm text-gray-500 mt-4">
3333
{% set comma = joiner() %}
3434
{%- for author in authors %}
35-
{{ comma() }} <span class="font-medium">{{ people[author].name if people[author] else 'FlowFuse' }}</span>
35+
{{ comma() }} <span class="font-medium">{{ people[author].name if people[author] else 'FlowFuse' }}</span>{% if people[author] and people[author].title %}<span class="text-gray-400">, {{ people[author].title }}</span>{% endif %}
3636
{%- endfor %}
3737
<span class="text-gray-500">•</span>
3838
{%- if lastUpdated -%}
39-
<time value="{{ lastUpdated | dateToRfc3339 }}">{{ lastUpdated | shortDate }}</time>
39+
<time datetime="{{ lastUpdated | dateToRfc3339 }}">Updated {{ lastUpdated | shortDate }}</time>
4040
{%- else -%}
41-
<time value="{{ date | dateToRfc3339 }}">{{ date | shortDate }}</time>
41+
<time datetime="{{ date | dateToRfc3339 }}">{{ date | shortDate }}</time>
4242
{%- endif -%}
4343
</div>
4444
</div>

0 commit comments

Comments
 (0)