Hide hero image div if none present.

This commit is contained in:
Marcus Scholz 2020-08-09 13:48:45 +02:00
parent 68db5fbc7a
commit f77650b54d

View File

@ -10,9 +10,11 @@
<article class="LP-PlaceOverview"> <article class="LP-PlaceOverview">
<div class="LP-PlaceOverview__Info"> <div class="LP-PlaceOverview__Info">
<div class="LP-PlaceOveriew__Image"> {% if place.images.first.filename.hero.url %}
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" /> <div class="LP-PlaceOveriew__Image">
</div> <img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
</div>
{% endif %}
<article class="LP-PlaceOverView__Description"> <article class="LP-PlaceOverView__Description">
<div class="LP-TextSection"> <div class="LP-TextSection">
<h1 class="LP-Headline LP-Headline">{{place.name}}</h1> <h1 class="LP-Headline LP-Headline">{{place.name}}</h1>