Remove nodemos meta

This commit is contained in:
afc163 2015-08-22 16:36:07 +08:00
parent 95708254a8
commit 6905ad697c
3 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,6 @@
- category: Components
- chinese: 字体图标
- order: 0
- nodemos: true
---

View File

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

View File

@ -1,3 +1,5 @@
{%- set items = resource.pages|find_demo_in_component(post.meta.directory) %}
{%- if items.length > 0 %}
<h2 class="component-demos">
组件演示
<i class="iconfont-home icon-all" title="展开全部代码"></i>
@ -9,7 +11,6 @@
{%- endif %}
</h2>
<div class="code-boxes">
{%- set items = resource.pages|find_demo_in_component(post.meta.directory) %}
{%- if post.meta.cols == 1 %}
<div class="code-boxes-col-1-1">
{%- for item in items %}
@ -32,3 +33,4 @@
</div>
{%- endif %}
</div>
{%- endif %}