This commit is contained in:
2025-01-20 14:37:57 +08:00
parent e08a5626be
commit 628c2b6496
+3 -2
View File
@@ -6,8 +6,9 @@
{% for listing in listings %}
<div class="col-md-4 mb-4">
<div class="card h-100">
{% if listing.images|length > 0 %}
<img src="{{ listing.images[0].url }}" class="card-img-top">
{% set listing_image = listing.images|selectattr('listing_id', 'equalto', listing.id)|list %}
{% if listing_image|length > 0 %}
<img src="{{ listing_image[0].url }}" class="card-img-top">
{% endif %}
<div class="card-body">
<h5 class="card-title">{{ listing.title }}</h5>