4 * Theme override for a views mini-pager.
7 * - items: List of pager items.
9 * @see template_preprocess_views_mini_pager()
12 {% if items.previous or items.next %}
13 <nav class="pager" role="navigation" aria-labelledby="pagination-heading">
14 <h4 class="pager__heading visually-hidden">{{ 'Pagination'|t }}</h4>
15 <ul class="pager__items js-pager__items">
16 {% if items.previous %}
17 <li class="pager__item pager__item--previous">
18 <a href="{{ items.previous.href }}" title="{{ 'Go to previous page'|t }}" rel="prev"{{ items.previous.attributes|without('href', 'title', 'rel') }}>
19 <span class="visually-hidden">{{ 'Previous page'|t }}</span>
20 <span aria-hidden="true">{{ items.previous.text|default('‹‹'|t) }}</span>
24 {% if items.current %}
25 <li class="pager__item is-active">
27 Page {{ items.current }}
32 <li class="pager__item pager__item--next">
33 <a href="{{ items.next.href }}" title="{{ 'Go to next page'|t }}" rel="next"{{ items.next.attributes|without('href', 'title', 'rel') }}>
34 <span class="visually-hidden">{{ 'Next page'|t }}</span>
35 <span aria-hidden="true">{{ items.next.text|default('››'|t) }}</span>