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

ISTWCMS-4619: updating card to handle author and tags properly

parent 2ad96ca9
No related branches found
No related tags found
2 merge requests!63Tag 3.0.1,!62Feature/istwcms 4619 m26lebla theme blog news events listing pages
......@@ -40,20 +40,13 @@
<span class="sub-title">{{ sub_title }}</span>
{% endif %}
{% endif %}
{% if author_name %}
<div class="card__author">
{% if author_link %}
by
<a href="{{ author_link }}">
{% endif %}
{{ author_name }}
{% if author_link %}
</a>
{% endif %}
{% if author %}
<div class="card__author">
by {{ author }}
</div>
{% endif %}
</div>
{% endif %}
<div class="card__content">
......@@ -80,12 +73,14 @@
<div class="card__footer">
{{ footer }}
{% if tags %}
<div class="card__tags">
{% include "@components/tag-list/tag-list.twig" with {
items: tags
} %}
</div>
{% endif %}
<div class="card__tags">
{% for tag in tags %}
{% include "@components/tag-list/tag-list.twig" with {
items: tag
} %}
{% endfor %}
</div>
{% endif %}
{% if read_more and url %}
<div class="card__readmore">
{{ macros.readmore(url, 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