mirror of
https://github.com/welpo/tabi.git
synced 2025-10-11 07:46:15 +02:00
💄 style(html): improve HTML semantics for last updated date
- wrap updated date in a <time> element with datetime attribute for better semantics and accessibility
This commit is contained in:
parent
234ed29ad9
commit
58b664c73f
1 changed files with 1 additions and 1 deletions
|
@ -172,7 +172,7 @@ Current section extra: {% if current_section %}{{ current_section.extra | json_e
|
|||
{%- set formatted_date = macros_format_date::format_date(date=page.updated, short=true, language_strings=language_strings) -%}
|
||||
{%- set updated_str = last_updated_str | replace(from="$DATE", to=formatted_date) -%}
|
||||
{%- set previous_visible = true -%}
|
||||
</ul><ul class="dt-updated meta last-updated"><li>{{ updated_str }}</li>
|
||||
</ul><ul class="meta last-updated"><li><time class="dt-updated" datetime="{{ page.updated }}">{{ updated_str }}</time></li>
|
||||
{#- Show link to remote changes if enabled -#}
|
||||
{%- if config.extra.remote_repository_url and macros_settings::evaluate_setting_priority(setting="show_remote_changes", page=page, default_global_value=true) == "true" -%}
|
||||
<li>{%- if previous_visible -%}{{ separator_with_class | safe }}{%- endif -%}<a class="external" href="{% include "partials/history_url.html" %}" {{ blank_target }} rel="{{ rel_attributes }}">{{ macros_translate::translate(key="see_changes", default="See changes", language_strings=language_strings) }}</a></li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue