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

ISTWCMS-4695: updating card to handle sub title only and adding to banners yml to test

parent d6ed5308
No related branches found
No related tags found
2 merge requests!63Tag 3.0.1,!56Feature/istwcms 4695 ebremner theme banners
......@@ -46,7 +46,7 @@ banners:
type: 'image/jpeg'
img_element: '../../../../source/images/president/president_xlarge.jpg'
alt: 'Alternative text'
big_text: 'Image2'
small_text: 'Image2'
-
sources:
- srcset: '../../../../source/images/president/president_xlarge.jpg'
......
......@@ -3,7 +3,7 @@
<article class="card {{ modifier_classes }} {% if show_hover %} card--show-hover {% endif %} {{ type }}" >
<div class="card__body">
{% if title or author or date %}
{% if title or author or date or sub_title %}
<div class="card__header">
{% if date %}
<div class="card__date">
......@@ -23,19 +23,24 @@
</div>
{% endif %}
{% if title %}
<h{{ header_level }} class="card__title">
{% if url %}
<a href="{{ url }}">
{% endif %}
{{ title }}
{% if url %}
</a>
{% endif %}
</h{{ header_level }}>
{% if title or sub_title %}
{% if title %}
<h{{ header_level }} class="card__title">
{% if url %}
<a href="{{ url }}">
{% endif %}
{{ title }}
{% if url %}
</a>
{% endif %}
</h{{ header_level }}>
{% endif %}
{% if sub_title %}
<span class="sub-title">{{ sub_title }}</span>
{% endif %}
{% endif %}
{% if author_name %}
......
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