1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-01-17 20:58:34 +01:00

fix icon tags

This commit is contained in:
codecalm 2022-08-25 15:24:05 +02:00
parent 9eac3e6ee0
commit 2489da5b17

View File

@ -1,7 +1,8 @@
---
---
{% assign common-tags = 'icon,stroke,outline' | split: ',' %}
{ {% for icon in site.icons %}
{% assign slug-tags = icon.slug | split: '-' %}{% assign tags = slug-tags | concat: icon.tags %} "{{ icon.slug }}": {
{% assign slug-tags = icon.slug | split: '-' %}{% assign tags = slug-tags | concat: icon.tags | concat: common-tags %} "{{ icon.slug }}": {
"category": "{{ icon.category }}",
"tags": ["{{ tags | join: '", "' }}"],
"version": "{{ icon.version }}",