{% set hasAction = (action is defined) %}
<!-- Thumbnail Josip-->
<figure class="thumbnail-josip {% if index % 2 == 1 %} odd {% endif %} {% if not hasAction %} no-animation {% endif %}">
<a href="{{ linkUrl }}"><img width="270" height="270" src="{{ imageUrl }}" alt="{{ title }}"/></a>
<div class="thumbnail-desc">
<h5 class="thumbnail-josip-title text-medium text-white">{{ title }}</h5>
{% if desc is defined %}<p class="font-italic text-white offset-top-0">{{ desc }}</p>{% endif %}
</div>
{% if hasAction %}
<figcaption>
<a class="btn btn-block btn-rect text-center btn-white" href="{{ linkUrl }}">{{ action }}</a>
</figcaption>
{% endif %}
</figure>