aboutsummaryrefslogtreecommitdiff
path: root/_includes/icon.html
blob: f653766f6b905e9dc239935f06f02517ae30a34c (plain)
1
2
{% assign width = include.width | default: 2 %}
{% assign name = include.name %}{% assign icon = site.icons | where: "slug", name | first %}{% assign replace-to = '<svg xmlns="http://www.w3.org/2000/svg" class="icon tabler-icon tabler-icon-ICON_NAME" width="24" height="24" viewBox="0 0 24 24" stroke-width="' | append: width | append: '" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"' | replace: 'ICON_NAME', name %}{% assign content = icon.content | replace: '<svg', replace-to %}{{ content }}