1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 01:44:25 +04:00

svg icon link

This commit is contained in:
codecalm
2021-03-16 02:55:25 +01:00
parent f784abb8cb
commit f93df2f080

View File

@@ -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 %}