aboutsummaryrefslogtreecommitdiff
path: root/src/_includes
diff options
context:
space:
mode:
Diffstat (limited to 'src/_includes')
-rw-r--r--src/_includes/icon.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/_includes/icon.html b/src/_includes/icon.html
index 89bd3c60..ced25557 100644
--- a/src/_includes/icon.html
+++ b/src/_includes/icon.html
@@ -1,2 +1,8 @@
{% 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">
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>{% endcapture %}{% assign content = icon.content | replace: '<svg>', replace-to %}{{ content }}
+{{ name }}
+{{ params.name }}
+{{ include.name }}
+{{ includes.name }}
+{{ include.stroke }}
+{{ params.stroke }}