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"> <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>