if you want the paging to be the same as the blogs and use the same classes
then you have to use the custom twig and custom blocks
and replace the pagination block in my_blocks.twig with
{% block pagination %}
{% if pagination.pages|length > 1 %}
<div class="xt_pagination"><!--
{# previous part #}
{% if pagination.current_page - 1 != 0 %}
--><span><a href="{{pagination.url}}{{ pagination.current_page - 1 }}" title="{{ translate ( 'previous' ) }}"><span>«</span></a></span><!--
{% endif %}
{% for page in pagination.pages %}
{% if page == pagination.current_page %}
--><span class="selected"><span>{{page}}</span></span><!--
{% elseif page == '...' %}
--><span class="selected"><span>{{page}}</span></span><!--
{% else %}
--><span><a href="{{ pagination.url }}{{page}}"><span>{{ page }}</span></a></span><!--
{% endif %}
{% endfor %}
{# next part #}
{% if pagination.current_page != pagination.pages|last %}
--><span><a href="{{pagination.url}}{{ pagination.current_page + 1 }}" title="{{ translate ( 'next' ) }}"><span>»</span></a></span><!--
{% endif %}
--></div>
{% endif %}
{% endblock %}
Copy code
{% if pagination.pages|length > 1 %}
<div class="xt_pagination"><!--
{# previous part #}
{% if pagination.current_page - 1 != 0 %}
--><span><a href="{{pagination.url}}{{ pagination.current_page - 1 }}" title="{{ translate ( 'previous' ) }}"><span>«</span></a></span><!--
{% endif %}
{% for page in pagination.pages %}
{% if page == pagination.current_page %}
--><span class="selected"><span>{{page}}</span></span><!--
{% elseif page == '...' %}
--><span class="selected"><span>{{page}}</span></span><!--
{% else %}
--><span><a href="{{ pagination.url }}{{page}}"><span>{{ page }}</span></a></span><!--
{% endif %}
{% endfor %}
{# next part #}
{% if pagination.current_page != pagination.pages|last %}
--><span><a href="{{pagination.url}}{{ pagination.current_page + 1 }}" title="{{ translate ( 'next' ) }}"><span>»</span></a></span><!--
{% endif %}
--></div>
{% endif %}
{% endblock %}
Copy code