FIX pagination

This commit is contained in:
2025-10-09 10:32:56 +00:00
parent 77376d301b
commit d1e5638ed2
7 changed files with 121 additions and 100 deletions

View File

@ -8,7 +8,7 @@
{% if videos %}
<div id="videosCarousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-inner">
{% for pair in videos|batch(2, null) %}
{% for pair in videos.posts|batch(2, null) %}
<div class="carousel-item {% if loop.first %}active{% endif %}">
<div class="row">
@ -67,7 +67,7 @@
</div>
{# carousel controls buttons#}
{% if videos|length > 1 %}
{% if videos.posts|length > 1 %}
<button class="carousel-control-prev" type="button" data-bs-target="#videosCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Anterior</span>