aboutsummaryrefslogtreecommitdiff
path: root/src/_includes/icon.html
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-12 15:04:56 +0100
committercodecalm <codecalm@gmail.com>2020-03-12 15:04:56 +0100
commit89a774589d6c712fc229f6c946f39b7e3be95a5b (patch)
treebeedbe7e3f49a4b09a67cf6c596490828d52266d /src/_includes/icon.html
parentgulp fixes (diff)
downloadtabler-icons-89a774589d6c712fc229f6c946f39b7e3be95a5b.tar.xz
new dir structure
Diffstat (limited to 'src/_includes/icon.html')
-rw-r--r--src/_includes/icon.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/_includes/icon.html b/src/_includes/icon.html
new file mode 100644
index 00000000..a481f4d2
--- /dev/null
+++ b/src/_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 icon-tabler icon-tabler-{{ 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 }}