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

ISTWCMS-4027: udpating the way that tag tpyes are handle

parent 8fb1b6b7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
<ul class="tag-list {{ modifier_classes }}">
{% for item in items %}
<li class="tag-list__item {% if item.faculty %}{{ item.faculty }}{% endif %}">
{{ macros.tag(item.url, item.title, item.type) }}
{{ macros.tag(item.url, item.title, tag_type) }}
</li>
{% endfor %}
</ul>
{% set teaser_modifier_classes -%}
card--teaser teaser--blog {{ modifier_classes }}
{%- endset %}
{% include "@components/teaser/teaser.twig" with {
modifier_classes: teaser_modifier_classes,
title: title,
url: url,
date_format: date_format,
date: date,
tags: tags,
sources: sources,
img_element: img_element,
alt: alt,
show_hover: show_hover,
content: content,
header_level: '2',
author_name: author_name,
author_link: author_link,
modifier_classes: teaser_modifier_classes,
title: title,
url: url,
date_format: date_format,
date: date,
tags: tags,
tag_type: 'simple',
sources: sources,
img_element: img_element,
alt: alt,
show_hover: show_hover,
content: content,
header_level: '2',
author_name: author_name,
author_link: author_link
} %}
\ No newline at end of file
......@@ -8,16 +8,12 @@ author_link: '#'
tags:
- url: '#'
title: 'Tag 1'
type: 'simple'
- url: '#'
title: 'Tag 2'
type: 'simple'
- url: '#'
title: 'Tag 3'
type: 'simple'
- url: '#'
title: 'Tag 4'
type: 'simple'
sources:
- srcset: '../../../../source/images/president/president_xlarge.jpg'
media: 'all and (min-width: 63.19rem)'
......
......@@ -3,18 +3,19 @@
{%- endset %}
{% include "@components/card/card.twig" with {
modifier_classes: teaser_modifier_classes,
title: title,
url: url,
date_format: date_format,
date: date,
tags: tags,
sources: sources,
img_element: img_element,
alt: alt,
show_hover: show_hover,
content: content,
header_level: '2',
author_name: author_name,
author_link: author_link,
modifier_classes: teaser_modifier_classes,
title: title,
url: url,
date_format: date_format,
date: date,
tags: tags,
tag_type: tag_type,
sources: sources,
img_element: img_element,
alt: alt,
show_hover: show_hover,
content: content,
header_level: '2',
author_name: author_name,
author_link: author_link
} %}
\ No newline at end of file
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