mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Escaped aria-label in footer links (squidfunk/mkdocs-material#2735) (#2746)
This commit is contained in:
parent
b3c0ecc161
commit
a07322fe54
@ -7,7 +7,7 @@
|
|||||||
<nav class="md-footer__inner md-grid" aria-label="{{ lang.t('footer.title') }}">
|
<nav class="md-footer__inner md-grid" aria-label="{{ lang.t('footer.title') }}">
|
||||||
{% if page.previous_page %}
|
{% if page.previous_page %}
|
||||||
{% set direction = lang.t("footer.previous") %}
|
{% set direction = lang.t("footer.previous") %}
|
||||||
<a href="{{ page.previous_page.url | url }}" class="md-footer__link md-footer__link--prev" aria-label="{{ direction }}: {{ page.previous_page.title }}" rel="prev">
|
<a href="{{ page.previous_page.url | url }}" class="md-footer__link md-footer__link--prev" aria-label="{{ direction }}: {{ page.previous_page.title | e }}" rel="prev">
|
||||||
<div class="md-footer__button md-icon">
|
<div class="md-footer__button md-icon">
|
||||||
{% include ".icons/material/arrow-left.svg" %}
|
{% include ".icons/material/arrow-left.svg" %}
|
||||||
</div>
|
</div>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if page.next_page %}
|
{% if page.next_page %}
|
||||||
{% set direction = lang.t("footer.next") %}
|
{% set direction = lang.t("footer.next") %}
|
||||||
<a href="{{ page.next_page.url | url }}" class="md-footer__link md-footer__link--next" aria-label="{{ direction }}: {{ page.next_page.title }}" rel="next">
|
<a href="{{ page.next_page.url | url }}" class="md-footer__link md-footer__link--next" aria-label="{{ direction }}: {{ page.next_page.title | e }}" rel="next">
|
||||||
<div class="md-footer__title">
|
<div class="md-footer__title">
|
||||||
<div class="md-ellipsis">
|
<div class="md-ellipsis">
|
||||||
<span class="md-footer__direction">
|
<span class="md-footer__direction">
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<a
|
<a
|
||||||
href="{{ page.previous_page.url | url }}"
|
href="{{ page.previous_page.url | url }}"
|
||||||
class="md-footer__link md-footer__link--prev"
|
class="md-footer__link md-footer__link--prev"
|
||||||
aria-label="{{ direction }}: {{ page.previous_page.title }}"
|
aria-label="{{ direction }}: {{ page.previous_page.title | e }}"
|
||||||
rel="prev"
|
rel="prev"
|
||||||
>
|
>
|
||||||
<div class="md-footer__button md-icon">
|
<div class="md-footer__button md-icon">
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<a
|
<a
|
||||||
href="{{ page.next_page.url | url }}"
|
href="{{ page.next_page.url | url }}"
|
||||||
class="md-footer__link md-footer__link--next"
|
class="md-footer__link md-footer__link--next"
|
||||||
aria-label="{{ direction }}: {{ page.next_page.title }}"
|
aria-label="{{ direction }}: {{ page.next_page.title | e }}"
|
||||||
rel="next"
|
rel="next"
|
||||||
>
|
>
|
||||||
<div class="md-footer__title">
|
<div class="md-footer__title">
|
||||||
|
Loading…
Reference in New Issue
Block a user