use iconSvg filter for Icon component
This commit is contained in:
parent
381c85b5ef
commit
d9d105433b
@ -1,6 +1,6 @@
|
|||||||
{% macro Icon(name, classes="") -%}
|
{% macro Icon(name, classes="") -%}
|
||||||
{% autoescape false %}
|
{% autoescape false %}
|
||||||
<span class="icon icon--{{name}} {{classes}}" aria-hidden="true">{{ svg }}</span>
|
<span class="icon icon--{{name}} {{classes}}" aria-hidden="true">{{ name | iconSvg }}</span>
|
||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user