{% if subpages|length > 0 %}
<section class="virtual-collections container">
{% for page in subpages %}
{% set smallImg = page.Thumb['list'] is defined and page.Thumb['list'].filePath ? page.Thumb['list'].filePath : '' %}
<a class="virtual-collections__item" href="{{ toolkit_route_localizer.generate('page', {'slug': page.Translation[app.request.locale].slug}, app.request.locale) }}">
<h2 class="virtual-collections__item__title block__h4">
{{ page.Translation[app.request.locale].title }}
</h2>
<img class="virtual-collections__item__image" src="{{smallImg}}" alt="{{page.Translation[app.request.locale].alt}}">
<div class="virtual-collections__item__content block__text">
{{ page.Translation[app.request.locale].shortLead|raw|nl2br }}
</div>
</a>
{% endfor %}
</section>
{% endif %}