Skip to content

Commit

Permalink
Poster image: Generate Thumbnails with srcset
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort committed Sep 2, 2024
1 parent 9beba1d commit 34ec69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/templates/main/event_big_card.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<div class="col-12 col-sm-6">
<a href="{{ event.url_path }}">
{% if event.poster %}
<img class="w-100" src="{{ event.poster.url }}">
{% thumbnail '400x' event.poster -- alt=event.name class="w-100 h-auto" %}
{% elif event.bar.image %}
<img class="w-100" src="{{ event.bar.image.url }}">
{% thumbnail '400x' event.bar.image -- alt=event.name class="w-100 h-auto" %}
{% endif %}
</a>
</div>
Expand Down

0 comments on commit 34ec69c

Please sign in to comment.