Skip to content
Snippets Groups Projects

Feature/istwcms 4619 m26lebla theme blog news events listing pages

1 file
+ 3
53
Compare changes
  • Side-by-side
  • Inline
{% for info in lists[type] %}
{% if type == 'Blog' %}
{% include '@components/card/card.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,
'show_hover': 'true',
'content': info.content,
'header_level': 2,
} %}
{% endif%}
{% if type == 'News' %}
{% include '@components/card/card.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,
'show_hover': 'true',
'content': info.content,
'author_name': info.author_name,
'author_link': info.author_link
} %}
{% endif %}
{% if type == 'Events' %}
{% include '@components/card/card.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,
'show_hover': 'true',
'content': info.content,
'header_level': 2,
} %}
{% endif %}
{% include '@components/teaser/teaser.twig' with {
'teaser': info,
} %}
{% endfor %}
Loading