Skip to content
Snippets Groups Projects

Feature/istwcms 4619 m26lebla theme blog news events listing pages

1 file
+ 2
3
Compare changes
  • Side-by-side
  • Inline
{% for info in lists[type] %}
{% if type == 'Blog' %}
{% include '@components/teaser/teaser--blog/teaser--blog.twig' with {
'title': info.title,
'url': info.url,
'date': info.date,
'author_name': info.author_name,
'author_link': info.author_link,
'sources': info.sources,
'img_element': info.img_element,
'alt': info.alt,
'tags': info.tags,
'content': info.content
} %}
{% endif%}
{% if type == 'News' %}
{% include '@components/teaser/teaser--news/teaser--news.twig' with {
'title': info.title,
'url': info.url,
'date': info.date,
'sources': info.sources,
'img_element': info.img_element,
'alt': info.alt,
'content': info.content
} %}
{% endif %}
{% if type == 'Events' %}
{% include '@components/teaser/teaser--event/teaser--event.twig' with {
'title': info.title,
'url': info.url,
'date': info.date,
'sources': info.sources,
'img_element': info.img_element,
'alt': info.alt,
'tags': info.tags,
'content': info.content
} %}
{% endif %}
{% endfor %}
\ No newline at end of file
{% include '@components/teaser/teaser.twig' with {
'teaser': info,
} %}
{% endfor %}
Loading