Don't assume image on listing item
This commit is contained in:
parent
1926c73145
commit
693184f7fa
1 changed files with 5 additions and 3 deletions
|
@ -3,9 +3,11 @@
|
||||||
<article class="media listing-item">
|
<article class="media listing-item">
|
||||||
<div class="columns">
|
<div class="columns">
|
||||||
<figure class="media-left column is-3 image-column">
|
<figure class="media-left column is-3 image-column">
|
||||||
|
{% if page.hero_image %}
|
||||||
<a href="{% pageurl page %}" class="image">
|
<a href="{% pageurl page %}" class="image">
|
||||||
<img src="{% image_url page.hero_image 'width-300' %}">
|
<img src="{% image_url page.hero_image 'width-300' %}">
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
</figure>
|
</figure>
|
||||||
<div class="media-content column">
|
<div class="media-content column">
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in a new issue