diff --git a/source/_patterns/04-components/card/card-footer-elements/_tags.twig b/source/_patterns/04-components/card/card-footer-elements/_tags.twig new file mode 100644 index 0000000000000000000000000000000000000000..33d119c296a88b40e1ac1dd28c74178d1f02ccc7 --- /dev/null +++ b/source/_patterns/04-components/card/card-footer-elements/_tags.twig @@ -0,0 +1,5 @@ +<div class="card__tags"> + {% include "@components/tag-list/tag-list.twig" with { + items: tags + } %} +</div> diff --git a/source/_patterns/04-components/card/card.twig b/source/_patterns/04-components/card/card.twig index 26891cea8c0263c841d4b827cb3537b04a93ae98..33bdc7110d00b4420e68b4f4bc205881622c61ef 100644 --- a/source/_patterns/04-components/card/card.twig +++ b/source/_patterns/04-components/card/card.twig @@ -104,7 +104,6 @@ <div class="card__footer"> {{ footer }} - {{ dd(additional_info) }} {% if additional_info %} {% include '@components/card/card-footer-elements/_additional-info.twig' with { @@ -210,13 +209,9 @@ {% endif %} {% if tags %} - <div class="card__tags"> - {% for tag in tags %} - {% include "@components/tag-list/tag-list.twig" with { - items: tag - } %} - {% endfor %} - </div> + {% include '@components/card/card-footer-elements/_tags.twig' with { + 'tags': tags, + } %} {% endif %} {% if read_more and url %}