diff options
author | codecalm <codecalm@gmail.com> | 2022-08-17 14:24:13 +0200 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2022-08-17 14:24:13 +0200 |
commit | 9c2987751f522ae470fcc81f31a8c8f0e5102dca (patch) | |
tree | d3bc24a9568a92046e22bdfd6a6f2913616e3721 /src/_includes/icon.html | |
parent | Merge branch 'master' of https://github.com/tabler/tabler-icons into dev-e11ty (diff) | |
download | tabler-icons-9c2987751f522ae470fcc81f31a8c8f0e5102dca.tar.xz |
eleventy test
Diffstat (limited to 'src/_includes/icon.html')
-rw-r--r-- | src/_includes/icon.html | 6 |
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 }} |