diff options
author | codecalm <codecalm@gmail.com> | 2022-08-18 13:59:03 +0200 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2022-08-18 13:59:03 +0200 |
commit | 7ee6ac51c0a003b46307d6ec92ef9d4432a16590 (patch) | |
tree | 0d5aa4ac20693991d273f4115dbb37aef1e5631c /src/_includes/icon.njk | |
parent | `tags.json` build (diff) | |
download | tabler-icons-7ee6ac51c0a003b46307d6ec92ef9d4432a16590.tar.xz |
e11ty testdev-e11ty
Diffstat (limited to 'src/_includes/icon.njk')
-rw-r--r-- | src/_includes/icon.njk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/_includes/icon.njk b/src/_includes/icon.njk new file mode 100644 index 00000000..d0137da8 --- /dev/null +++ b/src/_includes/icon.njk @@ -0,0 +1,6 @@ +{% macro icon(name, stroke = 2, width = 24) %} +<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"/> + {{ collections.icons | first }} +</svg> +{% endmacro %} |