1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2026-08-06 05:47:39 +00:00

fix(dom): add missing datetime attribute on time element (#2759)

The datetime attribute was missing from the time element, which is
recommended for semantic HTML. Add it using the date_to_xmlschema
Liquid filter to ensure proper ISO 8601 format.
This commit is contained in:
Yura
2026-06-29 01:16:49 +02:00
committed by GitHub
parent 6e12584926
commit 01c62bc636
2 changed files with 10 additions and 25 deletions
+1 -1
View File
@@ -10,7 +10,7 @@
{% if include.class %}
class="{{ include.class }}"
{% endif %}
data-ts="{{ include.date | date: '%s' }}"
datetime="{{ include.date | date_to_xmlschema }}"
data-df="{{ df_dayjs }}"
{% if include.tooltip %}
data-bs-toggle="tooltip" data-bs-placement="bottom"