aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-02-27 18:41:35 +0100
committercodecalm <codecalm@gmail.com>2020-02-27 18:41:35 +0100
commite6e7494bdcfbc48139dc38ea7219022e3d4ec6c1 (patch)
tree74c5b7b4c8e40b3bc4277f815dde8ccec660eb4f /_includes
parentfirst init (diff)
downloadtabler-icons-e6e7494bdcfbc48139dc38ea7219022e3d4ec6c1.tar.xz
icon preview
Diffstat (limited to '_includes')
-rw-r--r--_includes/icon.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/_includes/icon.html b/_includes/icon.html
new file mode 100644
index 00000000..fe6b02e4
--- /dev/null
+++ b/_includes/icon.html
@@ -0,0 +1,6 @@
+{% assign name = include.name %}
+{% assign icon = site.icons | where: "slug", name | first %}
+
+{% assign content = icon.content | replace: '<svg', '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"' %}
+
+{{ content }}