1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-08-29 16:50:15 +02:00

Optimize src/tags.json

This commit is contained in:
Anton
2022-04-07 11:24:30 +03:00
committed by GitHub
parent 83b3588523
commit c57320d417

View File

@@ -3,7 +3,7 @@
{ {% for icon in site.icons %} { {% 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 %} "{{ icon.slug }}": {
"category": "{{ icon.category }}", "category": "{{ icon.category }}",
"tags": [{% for tag in tags %}"{{ tag }}"{% unless forloop.last %}, {% endunless %}{% endfor %}], "tags": ["{{ tags | join: '", "' }}"],
"version": "{{ icon.version }}" "version": "{{ icon.version }}"
}{% unless forloop.last %}, {% endunless %}{% endfor %} }{% unless forloop.last %}, {% endunless %}{% endfor %}
} }