未验证 提交 35ee14d2 编写于 作者: P Paweł Kuna 提交者: GitHub

Add new Filled section to Icons page (#1574)

上级 a36d14c7
---
"@tabler/core": patch
---
Add new Filled section to Icons page
......@@ -5,12 +5,15 @@ menu: icons
---
{% assign icons-brand = '' | split: ',' %}
{% assign icons-filled = '' | split: ',' %}
{% assign icons-core = '' | split: ',' %}
{% for icon in site.data.icons %}
{% assign i = icon[0] %}
{% if i contains 'brand-' %}
{% assign icons-brand = icons-brand | push: i %}
{% elsif i contains '-filled' %}
{% assign icons-filled = icons-filled | push: i %}
{% else %}
{% assign icons-core = icons-core | push: i %}
{% endif %}
......@@ -27,4 +30,7 @@ menu: icons
<div class="col-12">
{% include cards/icons.html title="Brand icons" icons=icons-brand %}
</div>
<div class="col-12">
{% include cards/icons.html title="Filled icons" icons=icons-filled %}
</div>
</div>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册