Skip to content

Commit 271d7f1

Browse files
authored
Use HTML <time> elements for dates in changelog
Use semantic `<time>` to enhance machine readability.
1 parent ef55ea7 commit 271d7f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/changelog/[...slug].astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ const props = {
5252
<div>
5353
<h2>{note.data.title}</h2>
5454
<div>
55-
<strong
55+
<time class="font-bold" datetime={format(note.data.date, "yyyy-MM-dd'T'HH:mm:ssXXX")}
5656
>{format(note.data.date, "MMM dd, yyyy")}, {
5757
format(note.data.date, "hh:mm a")
58-
}</strong
58+
}</time
5959
>
6060
<ProductPills products={note.data.products} />
6161
</div>

0 commit comments

Comments
 (0)