mirror of
https://github.com/tabler/tabler.git
synced 2025-12-21 17:34:25 +04:00
svg icon link
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
{% if site.use-iconfont %}
|
||||
<i class="icon ti ti-{{ icon-name }}{% if include.color %} {{ include.color }}{% endif %}{% if include.filled %} icon-filled{% endif %}{% if include.class %} {{ include.class }}{% endif %}"></i>
|
||||
{% else %}
|
||||
<!-- Download SVG icon from http://tabler-icons.io/i/{{ icon-name }} -->
|
||||
{% assign svg-icon = site.data.icons[icon-name] | default: '' %}
|
||||
{{ svg-icon | replace_regex: 'class=\"[^"]+\"', replace-to }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user