aboutsummaryrefslogtreecommitdiff
path: root/_includes/icon.html
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-04 16:51:36 +0100
committercodecalm <codecalm@gmail.com>2020-03-04 16:51:36 +0100
commitcfcd253c3367db81f8fd8c67c96627f02522dca4 (patch)
treef28adaff155b7e8e6f75debac8355d07eb6430d9 /_includes/icon.html
parentnext part of icons (diff)
downloadtabler-icons-cfcd253c3367db81f8fd8c67c96627f02522dca4.tar.xz
icons
Diffstat (limited to '_includes/icon.html')
-rw-r--r--_includes/icon.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/_includes/icon.html b/_includes/icon.html
index 5cedcd5..f653766 100644
--- a/_includes/icon.html
+++ b/_includes/icon.html
@@ -1 +1,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="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"' | replace: 'ICON_NAME', name %}{% assign content = icon.content | replace: '<svg', replace-to %}{{ content }}
+{% 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 }}