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

ISTWCMS-4704: fixing featured image on node and title

parent 75c1a510
No related branches found
No related tags found
1 merge request!66ISTWCMS-4704: adding date component with ability to handle multiple dates and...
......@@ -2,7 +2,7 @@
<article class="card {{ modifier_classes }} {% if show_hover %} card--show-hover {% endif %} {{ type }}" >
{% if featured_image and img_element %}
{% if featured_image == 'yes' and img_element %}
<div class="card__featured-image" style="background-image: url({{ img_element }});" role="img" aria-label="{{ alt }}">
</div>
{% endif %}
......@@ -18,7 +18,7 @@
} %}
</div>
{% endif %}
{% if title or sub_title %}
{% if (title or sub_title) and featured_image == 'yes' %}
{% if title %}
<h{{ header_level }} class="card__title">
{% if url %}
......
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