aboutsummaryrefslogtreecommitdiff
path: root/src/_includes/icon.html
blob: c63e647689c6aa348697777170105e7c9483b4bd (plain)
1
2
3
4
5
6
7
8
9
{% 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 }}
1{{ name }}
1{{ er }}
2{{ params.name }}
3{{ include.name }}
4{{ includes.name }}
5{{ include.stroke }}
6{{ params.stroke }}