update layout

This commit is contained in:
afc163 2015-06-02 12:11:49 +08:00
parent 4f9055a5fe
commit 5651c402a5
12 changed files with 11 additions and 14 deletions

View File

@ -2,6 +2,7 @@
- category: CSS
- chinese: 按钮
- order: 2
- sketch: button.sketch
---

View File

@ -1,6 +1,6 @@
# Confirm
- category: Component
- category: Components
- chinese: 确认对话框
---

View File

@ -1,6 +1,6 @@
# Datepicker
- category: Component
- category: Components
- chinese: 日期选择框
---

View File

@ -2,6 +2,7 @@
- category: CSS
- chinese: 字体图标
- order: 1
---

View File

@ -2,6 +2,7 @@
- category: CSS
- chinese: 布局
- order: 0
---

View File

@ -1,6 +1,6 @@
# Modal
- category: Component
- category: Components
- chinese: 对话框
---

View File

@ -1,6 +1,6 @@
# Progress
- category: Component
- category: Components
- chinese: 进度条
---

View File

@ -1,6 +1,6 @@
# Select
- category: Component
- category: Components
- chinese: 选择框
---

View File

@ -1,6 +1,6 @@
# Tab
- category: Component
- category: Components
- chinese: 标签页
---

View File

@ -1,6 +1,6 @@
# Tooltip
- category: Component
- category: Components
- chinese: 文字提示
---

View File

@ -101,7 +101,7 @@
{%- endif %}
</h1>
{{ post.html }}
{%- if post.meta.template === 'component' %}
{%- if post.meta.template === 'component' && !post.meta.nodemos %}
{%- include "demos.html" %}
{%- endif %}
</article>

View File

@ -29,12 +29,6 @@ module.exports = function(nico) {
}
});
ret = ret.sort(function(a, b) {
if (/index$/i.test(a.filename)) {
a.meta.order = 1;
}
if (/index$/i.test(b.filename)) {
b.meta.order = 1;
}
a = a.meta.order || 10;
b = b.meta.order || 10;
return parseInt(a, 10) - parseInt(b, 10);