2025-07-14 07:33:32 +00:00
|
|
|
{% if posts.pagination.pages is not empty %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<nav class="pagination-block d-flex justify-content-center">
|
2025-07-14 07:33:32 +00:00
|
|
|
<ul class="pagination">
|
|
|
|
{# First #}
|
|
|
|
{% if (posts.pagination.pages|first) and posts.pagination.pages|first.current != true %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="first mx-2 border border-0">
|
|
|
|
<a href="{{ posts.pagination.pages|first.link }}" class="text-decoration-none btn-primary-cnt btn-pagination-position btn-page-hover">Inicio</a>
|
2025-07-14 07:33:32 +00:00
|
|
|
</li>
|
|
|
|
{% else %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="first disabled mx-2 border border-0" >
|
|
|
|
<button disabled class="btn-secondary-cnt btn-pagination-position btn-no-hover">Inicio</button>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Previous #}
|
|
|
|
{% if posts.pagination.prev %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="prev mx-2 border border-0">
|
|
|
|
<a href="{{ posts.pagination.prev.link }}" class="text-decoration-none btn-primary-cnt btn-pagination-position btn-page-hover">Anterior</a>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% else %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="prev disabled mx-2 border border-0">
|
|
|
|
<button disabled class="btn-secondary-cnt btn-pagination-position btn-no-hover">Anterior</button>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Pages #}
|
|
|
|
{% for page in posts.pagination.pages %}
|
|
|
|
{% if page.link %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="mx-2 btn-pagination-position">
|
|
|
|
<a href="{{ page.link }}" class="{{ page.class }} text-decoration-none btn-page-hover" >{{ page.title }}</a>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% else %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="current mx-2 btn-pagination-position">
|
|
|
|
<span class="{{ page.class }}">{{ page.title }}</span>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{# Next #}
|
|
|
|
{% if posts.pagination.next %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="next mx-2 border border-0">
|
|
|
|
<a href="{{ posts.pagination.next.link }}" class="text-decoration-none btn-primary-cnt btn-pagination-position btn-page-hover">Siguiente</a>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% else %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="next disabled mx-2 border border-0">
|
|
|
|
<button disabled class="btn-secondary-cnt btn-pagination-position btn-no-hover">Siguiente</button>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# Last #}
|
|
|
|
{% if (posts.pagination.pages|last) and posts.pagination.pages|last.current != true %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="last mx-2 border border-0">
|
|
|
|
<a href="{{ posts.pagination.pages|last.link }}" class="text-decoration-none btn-primary-cnt btn-pagination-position btn-page-hover">Última</a></li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% else %}
|
2025-08-13 08:58:35 +00:00
|
|
|
<li class="last disabled mx-2 border border-0">
|
|
|
|
<button disabled class="btn-secondary-cnt btn-pagination-position btn-no-hover">Última</button>
|
|
|
|
</li>
|
2025-07-14 07:33:32 +00:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
{% endif %}
|