{%- if listing | length > 0 -%}
{%- for element in listing -%}
{%- set image = element.property('featured_image') -%} {{ image.thumbnail('blog-listing-featured-image').html({ 'disableAutoAlt': true, 'alt': get_image_i18n_alt(image, ''), 'useDataSrc': true, 'pictureAttributes': { 'class': 'w-100 h-100 d-block ratio ratio-3x2 overflow-hidden user-select-none pointer-events-none' }, 'imgAttributes': { 'class': 'd-block w-100 h-100 object-fit-cover lazyload' } }) | raw }}
{%- set date = element.modificationDate -%} {%- if element.properties.publish_date is defined and element.properties.publish_date.data -%} {%- set date = element.properties.publish_date.data -%} {%- endif -%}
{%- endfor -%}
{%- set page_query = 'paginator.page_query' | trans -%} {%- if paginator.previous is defined -%} {{ 'paginator.previous_page' | trans }} {%- else -%}
{{ 'paginator.previous_page' | trans }}
{%- endif -%} {%- if paginator.next is defined -%} {{ 'paginator.next_page' | trans }} {%- else -%}
{{ 'paginator.next_page' | trans }}
{%- endif -%}
{%- endif -%}