File tree 3 files changed +13
-7
lines changed
3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 6
6
{% if page.previous_page or page.next_page %}
7
7
< nav class ="md-footer__inner md-grid " aria-label ="{{ lang.t('footer.title') }} ">
8
8
{% if page.previous_page %}
9
- < a href ="{{ page.previous_page.url | url }} " class ="md-footer__link md-footer__link--prev " rel ="prev ">
9
+ {% set direction = lang.t("footer.previous") %}
10
+ < a href ="{{ page.previous_page.url | url }} " class ="md-footer__link md-footer__link--prev " aria-label ="{{ direction }}: {{ page.previous_page.title }} " rel ="prev ">
10
11
< div class ="md-footer__button md-icon ">
11
12
{% include ".icons/material/arrow-left.svg" %}
12
13
</ div >
13
14
< div class ="md-footer__title ">
14
15
< div class ="md-ellipsis ">
15
16
< span class ="md-footer__direction ">
16
- {{ lang.t("footer.previous") }}
17
+ {{ direction }}
17
18
</ span >
18
19
{{ page.previous_page.title }}
19
20
</ div >
20
21
</ div >
21
22
</ a >
22
23
{% endif %}
23
24
{% if page.next_page %}
24
- < a href ="{{ page.next_page.url | url }} " class ="md-footer__link md-footer__link--next " rel ="next ">
25
+ {% set direction = lang.t("footer.next") %}
26
+ < a href ="{{ page.next_page.url | url }} " class ="md-footer__link md-footer__link--next " aria-label ="{{ direction }}: {{ page.next_page.title }} " rel ="next ">
25
27
< div class ="md-footer__title ">
26
28
< div class ="md-ellipsis ">
27
29
< span class ="md-footer__direction ">
28
- {{ lang.t("footer.next") }}
30
+ {{ direction }}
29
31
</ span >
30
32
{{ page.next_page.title }}
31
33
</ div >
Original file line number Diff line number Diff line change 34
34
35
35
<!-- Link to previous page -->
36
36
{% if page.previous_page %}
37
+ {% set direction = lang.t("footer.previous") %}
37
38
< a
38
39
href ="{{ page.previous_page.url | url }} "
39
40
class ="md-footer__link md-footer__link--prev "
41
+ aria-label ="{{ direction }}: {{ page.previous_page.title }} "
40
42
rel ="prev "
41
43
>
42
44
< div class ="md-footer__button md-icon ">
45
47
< div class ="md-footer__title ">
46
48
< div class ="md-ellipsis ">
47
49
< span class ="md-footer__direction ">
48
- {{ lang.t("footer.previous") }}
50
+ {{ direction }}
49
51
</ span >
50
52
{{ page.previous_page.title }}
51
53
</ div >
55
57
56
58
<!-- Link to next page -->
57
59
{% if page.next_page %}
60
+ {% set direction = lang.t("footer.next") %}
58
61
< a
59
62
href ="{{ page.next_page.url | url }} "
60
63
class ="md-footer__link md-footer__link--next "
64
+ aria-label ="{{ direction }}: {{ page.next_page.title }} "
61
65
rel ="next "
62
66
>
63
67
< div class ="md-footer__title ">
64
68
< div class ="md-ellipsis ">
65
69
< span class ="md-footer__direction ">
66
- {{ lang.t("footer.next") }}
70
+ {{ direction }}
67
71
</ span >
68
72
{{ page.next_page.title }}
69
73
</ div >
Original file line number Diff line number Diff line change 20
20
IN THE SOFTWARE.
21
21
-->
22
22
23
- <!-- Kept for backward compatibility. This file wil be removed in v8 -->
23
+ <!-- Kept for backward compatibility. This file will be removed in v8 -->
24
24
{% include "partials/source-file.html" %}
You can’t perform that action at this time.
0 commit comments