+ {% block content_top %}
+ {% if content_top is not empty %}
+
+ {{- content_top|raw -}}
{% endif %}
{% endblock %}
- {% if content is not empty %}
- {% include '@atoms/paragraph/paragraph.twig' with {
- theme: theme,
- content: content,
- allow_html: true,
- modifier_class: 'ct-slide__content',
- } only %}
- {% endif %}
+ {% block tags %}
+ {% if tags %}
+ {% include '@molecules/tag-list/tag-list.twig' with {
+ theme: theme,
+ tags: tags,
+ modifier_class: 'ct-slide__tags'
+ } only %}
+ {% endif %}
+ {% endblock %}
- {% block links %}
- {% if links is not empty %}
- {% set link_items = [] %}
- {% for link in links %}
- {% set link_item %}
- {% include '@atoms/button/button.twig' with {
- theme: theme,
- kind: 'link',
- type: loop.index == 1 ? 'primary' : 'secondary',
- text: link.text,
- url: link.url,
- is_external: link.is_external,
- is_new_window: link.is_new_window,
- modifier_class: 'ct-slide__links__link',
+ {% block content %}
+ {% if title is not empty %}
+ {% include '@atoms/heading/heading.twig' with {
+ theme: theme,
+ content: title,
+ level: 2,
+ modifier_class: 'ct-slide__title'
+ } only %}
+ {% endif %}
+
+ {% block date %}
+ {% if date is not empty %}
+ {% set date_content %}
+ {% include '@base/datetime/datetime.twig' with {
+ start: date,
+ start_iso: date_iso ?? null,
+ end: date_end ?? null,
+ end_iso: date_end_iso ?? null,
} only %}
{% endset %}
- {% set link_items = link_items|merge([link_item]) %}
- {% endfor %}
- {% include '@base/item-list/item-list.twig' with {
- items: link_items,
- size: 'small',
- modifier_class: 'ct-slide__links',
+
+ {% include '@atoms/tag/tag.twig' with {
+ theme: theme,
+ type: date_end ? 'secondary' : 'tertiary',
+ content: date_content,
+ icon: date_end ? 'calendar-2' : null,
+ icon_placement: 'before',
+ } only %}
+
+ {% endif %}
+ {% endblock %}
+
+ {% if content is not empty %}
+ {% include '@atoms/paragraph/paragraph.twig' with {
+ theme: theme,
+ content: content,
+ allow_html: true,
+ modifier_class: 'ct-slide__content',
} only %}
{% endif %}
+
+ {% block links %}
+ {% if links is not empty %}
+ {% set link_items = [] %}
+ {% for link in links %}
+ {% set link_item %}
+ {% include '@atoms/button/button.twig' with {
+ theme: theme,
+ kind: 'link',
+ type: loop.index == 1 ? 'primary' : 'secondary',
+ text: link.text,
+ url: link.url,
+ is_external: link.is_external,
+ is_new_window: link.is_new_window,
+ modifier_class: 'ct-slide__links__link',
+ } only %}
+ {% endset %}
+ {% set link_items = link_items|merge([link_item]) %}
+ {% endfor %}
+
+ {% include '@base/item-list/item-list.twig' with {
+ items: link_items,
+ size: 'small',
+ modifier_class: 'ct-slide__links',
+ } only %}
+ {% endif %}
+ {% endblock %}
{% endblock %}
- {% endblock %}
- {% block content_bottom %}
- {% if content_bottom is not empty %}
-
- {{- content_bottom|raw -}}
-
- {% endif %}
- {% endblock %}
+ {% block content_bottom %}
+ {% if content_bottom is not empty %}
+
+ {{- content_bottom|raw -}}
+
+ {% endif %}
+ {% endblock %}
+