Skip to content

Commit 3839917

Browse files
committed
Fix latest item in carousel mode by checking for thumbnails
1 parent 0a826df commit 3839917

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/jinja2/common/base.library.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ <h6 class="card-subtitle mb-2 text-muted text-center">{{ title }}</h6>
10291029
</div>
10301030
{% elif style == 'carousel' %}
10311031
<div class="d-flex justify-content-center">
1032-
{% if items|selectattr('data_mime')|list %}
1032+
{% if items|selectattr('thumbnail')|list %}
10331033
<div id="{{ id }}" class="carousel slide mt-2 w-75 h-75" data-bs-ride="carousel">
10341034
<div class="carousel-indicators">
10351035
{% for item in items %}

0 commit comments

Comments
 (0)