diff --git a/templates/index.html b/templates/index.html index b33fb39..69bdc25 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,8 +6,9 @@ {% for listing in listings %}
- {% if listing.images|length > 0 %} - + {% set listing_image = listing.images|selectattr('listing_id', 'equalto', listing.id)|list %} + {% if listing_image|length > 0 %} + {% endif %}
{{ listing.title }}