Skip to content
Snippets Groups Projects
Commit 81a210e6 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-4909 Update to card, adding hero image.

parent 6411a04e
No related branches found
No related tags found
1 merge request!72ISTWCMS-4909 Update to card, adding hero image.
......@@ -29,5 +29,6 @@
'groups': node.groups,
'featured_image': featured_image,
'card_type': 'node',
'hero': node.hero,
} %}
</div>
......@@ -9,8 +9,8 @@
<article class="card {{ modifier_classes }} {% if show_hover %} card--show-hover {% endif %} {{ card_type }}" >
{% if featured_image == 'yes' and img_element %}
<div class="card__featured-image" style="background-image: url({{ img_element }});" role="img" aria-label="{{ alt }}">
{% if featured_image == 'yes' and hero.img_element %}
<div class="card__featured-image" style="background-image: url({{ hero.img_element }});" role="img" aria-label="{{ hero.alt }}">
</div>
{% endif %}
......
......@@ -73,3 +73,6 @@ social_media:
- text: 'LinkedIn'
url: 'https://www.linkedin.com/edu/school?id=10875'
social_media_placement: 'card-footer'
hero:
img_element: '../../../../source/images/president/president_xlarge.jpg'
alt: 'Alternative hero text'
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