add alt="" to flags to make it standards-compliant
This commit is contained in:
parent
69741e6c08
commit
5438d7cf64
@ -31,7 +31,7 @@
|
|||||||
{% if config.display_flags and post.modifiers.flag %}
|
{% if config.display_flags and post.modifiers.flag %}
|
||||||
<img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
<img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
||||||
style="{% if post.modifiers['flag style'] %}{{ post.modifiers['flag style'] }}{% else %}{{ config.flag_style }}{% endif %}"
|
style="{% if post.modifiers['flag style'] %}{{ post.modifiers['flag style'] }}{% else %}{{ config.flag_style }}{% endif %}"
|
||||||
{% if post.modifiers['flag alt'] %}title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
|
{% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
||||||
</label>
|
</label>
|
||||||
|
@ -85,7 +85,7 @@
|
|||||||
{% if config.display_flags and post.modifiers.flag %}
|
{% if config.display_flags and post.modifiers.flag %}
|
||||||
<img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
<img class="flag" src="{{ config.uri_flags|sprintf(post.modifiers.flag) }}"
|
||||||
style="{% if post.modifiers['flag style'] %}{{ post.modifiers['flag style'] }}{% else %}{{ config.flag_style }}{% endif %}"
|
style="{% if post.modifiers['flag style'] %}{{ post.modifiers['flag style'] }}{% else %}{{ config.flag_style }}{% endif %}"
|
||||||
{% if post.modifiers['flag alt'] %}title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
|
{% if post.modifiers['flag alt'] %}alt="{{ post.modifiers['flag alt'] | e('html_attr') }}" title="{{ post.modifiers['flag alt'] | e('html_attr') }}"{% endif %}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
<time datetime="{{ post.time|date('%Y-%m-%dT%H:%M:%S') }}{{ timezone() }}">{{ post.time|date(config.post_date) }}</time>
|
||||||
</label>
|
</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user