Don't assume image on listing item

This commit is contained in:
Jake Howard 2022-06-26 10:06:51 +01:00
parent 1926c73145
commit 693184f7fa
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -3,9 +3,11 @@
<article class="media listing-item">
<div class="columns">
<figure class="media-left column is-3 image-column">
<a href="{% pageurl page %}" class="image">
<img src="{% image_url page.hero_image 'width-300' %}">
</a>
{% if page.hero_image %}
<a href="{% pageurl page %}" class="image">
<img src="{% image_url page.hero_image 'width-300' %}">
</a>
{% endif %}
</figure>
<div class="media-content column">
<div>