ensure image from gallery is displayed

This commit is contained in:
Tobias Brunner 2025-07-07 17:30:10 +02:00
parent 444bfa339a
commit b3c1b00ae8
No known key found for this signature in database
13 changed files with 29 additions and 23 deletions

View file

@ -145,9 +145,9 @@
<div class="col-12 col-md-6 col-lg-4 mb-30">
<div class="card {% if article.is_featured %}card-featured{% endif %} h-100 d-flex flex-column clickable-card"
onclick="cardClicked(event, '{{ article.get_absolute_url }}')">
{% if article.image or article.is_featured %}
{% if article.get_image or article.is_featured %}
<div class="d-flex justify-content-between mb-3">
{% if article.image %}
{% if article.get_image %}
<div class="card__image flex-shrink-0">
<img src="{{ article.get_image.url }}" alt="{{ article.title }}" class="img-fluid">
</div>