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

ISTWCMS-4704: updating card and contact to handle image

parent 56536b75
No related branches found
No related tags found
1 merge request!66ISTWCMS-4704: adding date component with ability to handle multiple dates and...
......@@ -10,6 +10,7 @@
'date': teaser.date,
'sources': teaser.image.sources,
'img_element': teaser.image.img_element,
'image': teaser.image,
'alt': teaser.image.alt,
'tags': teaser.tags,
'content': teaser.content,
......
......@@ -56,7 +56,14 @@
{% endif %}
</div>
{% endif %}
<div class="card__content">
{% if image %}
<div class="card__image">
<img src="{{ image.uri }}" alt="{{ image.alt }} "/>
</div>
{% endif %}
<div class="card__content">
{{ content }}
</div>
......
......@@ -6,7 +6,9 @@
{% block details_summary %}
{% if contact.title %}
<h2 class="uw-contact__h2">
{{ contact.title }}
<a href="{{ contact.url }}">
{{ contact.title }}
</a>
</h2>
{% endif %}
{% if contact.sub_title %}
......
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