File tree 1 file changed +10
-10
lines changed
themes/vocabulary_theme/templates/macros
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
{% macro render_pagination(pagination) %}
2
2
< nav class ="pagination " role ="navigation " aria-label ="pagination ">
3
3
< ul class ="pagination-list ">
4
- <!-- {% if pagination.has_prev %}
5
- <li class="page-item"><a class="page-link" href="{{ pagination.prev|url }}">Previous</a></li >
6
- {% else %}
7
- <li class="page-item disabled"><a class="page-link">Previous</a>< /li>
8
- {% endif %} -->
4
+ {% if pagination.has_prev %}
5
+ < li class ="inactive " >
6
+ < a class =" pagination-link inactive-link " href =" {{ pagination.prev|url }} " aria-label =" Goto previous " > < i class =" icon chevron-left " > </ i > </ a >
7
+ </ li >
8
+ {% endif %}
9
9
{% for p in range(pagination.pages) %}
10
10
{% if pagination.current|url == pagination.for_page(p+1)|url %}
11
11
< li class ="common ">
17
17
</ li >
18
18
{% endif %}
19
19
{% endfor %}
20
- <!-- {% if pagination.has_next %}
21
- <li class="page-item"><a class="page-link" href="{{ pagination.next|url }}">Next</a></li >
22
- {% else %}
23
- <li class="page-item disabled"><a class="page-link">Next</a>< /li>
24
- {% endif %} -->
20
+ {% if pagination.has_next %}
21
+ < li class ="inactive " >
22
+ < a class =" pagination-link inactive-link " href =" {{ pagination.next|url }} " aria-label =" Goto next " > < i class =" icon chevron-right " > </ i > </ a >
23
+ </ li >
24
+ {% endif %}
25
25
</ ul >
26
26
</ nav >
27
27
{% endmacro %}
You can’t perform that action at this time.
0 commit comments