Skip to content
Snippets Groups Projects
Commit dfa97090 authored by Chris Lawton's avatar Chris Lawton
Browse files

adding result icon as an image option with default fallback

parent eb8b92d1
No related branches found
No related tags found
No related merge requests found
......@@ -17,11 +17,13 @@
{% endif %}
</h6>
{% if result.listing_image %}
<a href="{% pageurl result %}">
{% image result.listing_image fill-450x300 %}
</a>
{% endif %}
{% if result.listing_image or result.icon %}
{% image result.listing_image|default:result.icon fill-180x180 class="listing__image" %}
{% else %}
<div class="listing__image listing__image--default">
<svg><use xlink:href="#logo-mobile-no-text"></use></svg>
</div>
{% endif %}
<h4>
<a href="{% pageurl result %}">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment