diff --git a/source/_macros/gesso.macro.twig b/source/_macros/gesso.macro.twig index 5a03a4091808bb1bef3f7ef0280f59c2357d9094..d2eb1f95bb09e35fc3b484c566b9e5e2a8e464e6 100644 --- a/source/_macros/gesso.macro.twig +++ b/source/_macros/gesso.macro.twig @@ -6,14 +6,3 @@ 'title': title } %} {% endmacro %} - - -{% macro tag(url, title, type = "full", size = "normal" ) %} - {% include '@components/tag/tag.twig' with { - 'url': url, - 'title': title, - 'type': type, - 'size': size, - 'faculty':faculty - } %} -{% endmacro %} diff --git a/source/_patterns/04-components/card/card.twig b/source/_patterns/04-components/card/card.twig index 4d0c21aaf430da8b74204859999a9033e501f636..9f528c98b7f02539694d859eae00d1fdeea8ed81 100644 --- a/source/_patterns/04-components/card/card.twig +++ b/source/_patterns/04-components/card/card.twig @@ -1,4 +1,4 @@ -{% import '@macros/gesso.macro.twig' as macros %} +{% import '@components/tag/_tag_macro.twig' as macros %} <article class="card {{ modifier_classes }} {% if show_hover %} card--show-hover {% endif %}" > <div class="card__body"> diff --git a/source/_patterns/04-components/tag/_tag_macro.twig b/source/_patterns/04-components/tag/_tag_macro.twig new file mode 100644 index 0000000000000000000000000000000000000000..960400490ffabb3c91640546edd91a563f604cad --- /dev/null +++ b/source/_patterns/04-components/tag/_tag_macro.twig @@ -0,0 +1,9 @@ +{% macro tag(url, title, type = "full", size = "normal" ) %} + {% include '@components/tag/tag.twig' with { + 'url': url, + 'title': title, + 'type': type, + 'size': size, + 'faculty':faculty + } %} +{% endmacro %} \ No newline at end of file