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

ISTWCMS-5195: fixing profiles to use new node theming and fixing card teaser

parent eaaceacc
No related branches found
No related tags found
1 merge request!118Feature/istwcms 5195 ebremner node theming
......@@ -7,13 +7,11 @@
{% include '@components/card/card.twig' with {
'type': type,
'url': teaser.url,
'title': teaser.title,
'sub_title': teaser.sub_title,
'date': teaser.date,
'header': teaser.header,
'listing_image': teaser.listing_image,
'content': teaser.content,
'tags': teaser.tags,
'show_hover': show_hover,
'card_type': 'teaser',
'type': type,
'show_body': show_body
} %}
......@@ -11,10 +11,12 @@
{% set show_header = 'yes' %}
{% endif %}
{% if not hero_image and not listing_image and not banner and not content %}
{% set show_body = 'no' %}
{% else %}
{% set show_body = 'yes' %}
{% if not show_body %}
{% if not hero_image and not listing_image and not banner and not content %}
{% set show_body = 'no' %}
{% else %}
{% set show_body = 'yes' %}
{% endif %}
{% endif %}
<article class="card{% if type %} card__{{ type }}{% endif %}{% if show_hover %} card--show-hover {% endif %}" >
......
......@@ -3,9 +3,11 @@
{% block content %}
{% for profile in profiles %}
{% include '@components/card/card--teaser/card--teaser.twig' with {
teaser: profile,
'teaser': profile,
'type': 'teaser',
'show_body': 'yes',
} %}
{% endfor %}
{% endblock %}
{% endembed %}
</div>
\ No newline at end of file
</div>
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