I am using quark
I have a variety of image styles for the different type of content with a number of taxonomies, ex…
- resource (quote, exercises to do, link)
- viztype (infographic, recap)
I a trying to get the images to crop differently in the blog-list-item
This works when my taxonomy is 'more than one word’
{% if image and resource == 'exercises to do' %}
<div class="card-image">
<a href="{{ page.url }}">{{ image.crop(0, 0, 600, 600).html(image.meta.title,image.meta.caption) }}</a>
</div>
{% elseif image %}
<div class="card-image">
<a href="{{ page.url }}">{{ image.cropZoom(800,800).html(image.meta.title,image.meta.caption) }}</a>
</div>
{% endif %}
This doesn’t work
{% if image and resource == quote %}
<div class="card-image">
<a href="{{ page.url }}">{{ image.crop(0, 0, 600, 600).html(image.meta.title,image.meta.caption) }}</a>
</div>
{% elseif image %}
<div class="card-image">
<a href="{{ page.url }}">{{ image.cropZoom(800,800).html(image.meta.title,image.meta.caption) }}</a>
</div>
{% endif %}
I’m baffled can anyone provide insight??