Skip to content
Snippets Groups Projects
Commit a05f46a1 authored by Eric Bremner's avatar Eric Bremner Committed by Eric Bremner
Browse files

ISTWCMS-4619: updating multi-type list to use new teaser component

parent fb43a177
No related branches found
No related tags found
2 merge requests!63Tag 3.0.1,!62Feature/istwcms 4619 m26lebla theme blog news events listing pages
{% for info in lists[type] %} {% for info in lists[type] %}
{% if type == 'Blog' %} {% include '@components/teaser/teaser.twig' with {
'teaser': info,
{% 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 %}
{% endfor %} {% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment