aboutsummaryrefslogtreecommitdiff
path: root/_includes/icon.html
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-05 22:28:26 +0100
committercodecalm <codecalm@gmail.com>2020-03-05 22:28:26 +0100
commit1022da7fccb0cc5c666c61d521b6e530c649c0f0 (patch)
tree2a45fb5d6496a597c4de01abf2219c61d791e984 /_includes/icon.html
parentbike, location, gauge, man, woman (diff)
downloadtabler-icons-1022da7fccb0cc5c666c61d521b6e530c649c0f0.tar.xz
messages
Diffstat (limited to '_includes/icon.html')
-rw-r--r--_includes/icon.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/_includes/icon.html b/_includes/icon.html
index f653766f..ff567c71 100644
--- a/_includes/icon.html
+++ b/_includes/icon.html
@@ -1,2 +1 @@
-{% assign width = include.width | default: 2 %}
-{% assign name = include.name %}{% assign icon = site.icons | where: "slug", name | first %}{% assign replace-to = '<svg xmlns="http://www.w3.org/2000/svg" class="icon tabler-icon tabler-icon-ICON_NAME" width="24" height="24" viewBox="0 0 24 24" stroke-width="' | append: width | append: '" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"' | replace: 'ICON_NAME', name %}{% assign content = icon.content | replace: '<svg', replace-to %}{{ content }}
+{% 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 }}