Implemented django-thumbs-v2 and modified PlaceOverview template to use scaled images.

This commit is contained in:
2020-07-27 22:53:33 +02:00
parent b027f9d476
commit 912fb8da50
4 changed files with 14 additions and 7 deletions

View File

@@ -7,7 +7,7 @@
<article class="LP-PlaceOverview">
<div class="LP-PlaceOverview__Info">
<img class="LP-PlaceOveriew__Image" src="{{ place.images.first.filename.url }}">
<img class="LP-PlaceOveriew__Image" src="{{ place.images.first.filename.url_hero }}">
<article class="LP-PlaceOverView__Description">
<div class="LP-TextSection">
<h1 class="LP-Headline LP-Headline--main">{{place.name}}</h1>
@@ -63,7 +63,7 @@
<ul class="LP-PlaceOverView__ImageList">
{% for place_image in place.images.all %}
<li class="LP-PlaceOverView__ImageItem">
<a href="{{ place_image.filename.url }}"> <img src="{{ place_image.filename.url }}"></a>
<a href="{{ place_image.filename.url_large }}"> <img src="{{ place_image.filename.url_thumbnail }}"></a>
</li>
{% endfor %}
</ul>