From 7a92dd78981a7a74de7518c46c47651e888aa3f5 Mon Sep 17 00:00:00 2001
From: Eric Bremner <ebremner@uwaterloo.ca>
Date: Tue, 9 Nov 2021 18:20:53 +0000
Subject: [PATCH] ISTWCMS-5195: adding back tags and cleaning up code to output
 tags

---
 .../card/card-footer-elements/_tags.twig              |  5 +++++
 source/_patterns/04-components/card/card.twig         | 11 +++--------
 2 files changed, 8 insertions(+), 8 deletions(-)
 create mode 100644 source/_patterns/04-components/card/card-footer-elements/_tags.twig

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 00000000..33d119c2
--- /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 26891cea..33bdc711 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 %}
-- 
GitLab