diff options
author | codecalm <codecalm@gmail.com> | 2020-03-10 22:12:47 +0100 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2020-03-10 22:12:47 +0100 |
commit | fe151338aeedcf04cc2078653193903519f7b4ad (patch) | |
tree | 051e557be0474af0192e1990b3f352885545509b /_includes | |
parent | icons sprite (diff) | |
download | tabler-icons-fe151338aeedcf04cc2078653193903519f7b4ad.tar.xz |
icons directory structure
Diffstat (limited to '_includes')
-rw-r--r-- | _includes/icon.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/_includes/icon.html b/_includes/icon.html new file mode 100644 index 0000000..ff567c7 --- /dev/null +++ b/_includes/icon.html @@ -0,0 +1 @@ +{% assign stroke = include.stroke | default: 2 %}{% assign width = 24 %}{% assign name = include.name %}{% assign icon = site.icons | where: "slug", name | first %}{% capture replace-to %}<svg xmlns="http://www.w3.org/2000/svg" class="icon tabler-icon tabler-icon-{{ name }}" width="{{ width }}" height="{{ width }}" viewBox="0 0 24 24" stroke-width="{{ stroke }}" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">{% endcapture %}{% assign content = icon.content | replace: '<svg>', replace-to %}{{ content }} |