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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user