fix: semantic <time> by adding datetime attribute (#1184)

Fix semantic <time>

The HTML validator was throwing an error because there was no valid datetime attribute.
This commit is contained in:
Terence Eden
2025-11-01 20:53:37 +01:00
committed by GitHub
parent 2f47d14a8a
commit f824d08f6f
@@ -31,7 +31,7 @@
{{ if $showDate }}
<div>
{{ partial "helper/icon" "date" }}
<time class="article-time--published">
<time class="article-time--published" datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
{{- .Date | time.Format (or .Site.Params.dateFormat.published "Jan 02, 2006") -}}
</time>
</div>