Hide hero image div if none present.
This commit is contained in:
parent
68db5fbc7a
commit
f77650b54d
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user