From d1ec1473131e7ef501e7dd0e81f1d1f4a5adfa1a Mon Sep 17 00:00:00 2001 From: Eric Bremner <ebremner@uwaterloo.ca> Date: Thu, 18 Nov 2021 16:01:56 +0000 Subject: [PATCH] ISTWCMS-5195: updating to use separte tagging on card --- .../04-components/card/card--node/card--node.twig | 1 + .../04-components/card/card--teaser/card--teaser.twig | 1 + source/_patterns/04-components/card/card.twig | 8 ++++++++ 3 files changed, 10 insertions(+) diff --git a/source/_patterns/04-components/card/card--node/card--node.twig b/source/_patterns/04-components/card/card--node/card--node.twig index d94388e0..93bde983 100644 --- a/source/_patterns/04-components/card/card--node/card--node.twig +++ b/source/_patterns/04-components/card/card--node/card--node.twig @@ -14,5 +14,6 @@ 'listing_image': node.listing_image, 'content': node.content, 'footer': node.footer, + 'tags': node.tags, } %} </div> diff --git a/source/_patterns/04-components/card/card--teaser/card--teaser.twig b/source/_patterns/04-components/card/card--teaser/card--teaser.twig index 21e03b0a..3a9ec814 100644 --- a/source/_patterns/04-components/card/card--teaser/card--teaser.twig +++ b/source/_patterns/04-components/card/card--teaser/card--teaser.twig @@ -11,5 +11,6 @@ 'listing_image': teaser.listing_image, 'content': teaser.content, 'footer': teaser.footer, + 'tags': teaser.tags, 'show_hover': show_hover, } %} diff --git a/source/_patterns/04-components/card/card.twig b/source/_patterns/04-components/card/card.twig index 1978d33b..b1d1ff26 100644 --- a/source/_patterns/04-components/card/card.twig +++ b/source/_patterns/04-components/card/card.twig @@ -64,4 +64,12 @@ {% endif %} </div> {% endif %} + + {{ tags }} + {% if tags %} + {% include '@components/card/card-elements/_tags.twig' with { + 'tags': tags + } %} + {% endif %} + </article> -- GitLab