Hide hero image div if none present.
This commit is contained in:
parent
68db5fbc7a
commit
f77650b54d
@ -10,9 +10,11 @@
|
||||
|
||||
<article class="LP-PlaceOverview">
|
||||
<div class="LP-PlaceOverview__Info">
|
||||
<div class="LP-PlaceOveriew__Image">
|
||||
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
|
||||
</div>
|
||||
{% if place.images.first.filename.hero.url %}
|
||||
<div class="LP-PlaceOveriew__Image">
|
||||
<img src="{{ place.images.first.filename.hero.url }}" class="LP-Image" />
|
||||
</div>
|
||||
{% endif %}
|
||||
<article class="LP-PlaceOverView__Description">
|
||||
<div class="LP-TextSection">
|
||||
<h1 class="LP-Headline LP-Headline">{{place.name}}</h1>
|
||||
|
Loading…
Reference in New Issue
Block a user