Include full timestamp in article meta

This commit is contained in:
Shadowfacts 2019-09-18 10:42:41 -04:00
parent 1ceaa15507
commit 4c3a069671
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,8 @@
on
<span>
<% const formatted = formatDate(metadata.date, "MMM Do, YYYY") %>
<time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>"><%= formatted %></time>
<% const fullFormatted = formatDate(metadata.date, "hh:mm:ss A MMM Do, YYYY") %>
<time itemprop="datePublished" datetime="<%= metadata.date.toISOString() %>" title="<%= fullFormatted %>"><%= formatted %></time>
</span>
<% if (metadata.category) { %>
in
@ -18,4 +19,4 @@
<%= metadata.readingTime %> min read
<% } %>
</p>
</p>