mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
filter name
This commit is contained in:
parent
d83608dff4
commit
21810a727c
@ -97,7 +97,7 @@
|
|||||||
<script type="text/jsx">
|
<script type="text/jsx">
|
||||||
React.render(
|
React.render(
|
||||||
<CodeBoxes>
|
<CodeBoxes>
|
||||||
{%- set items = resource.pages|under(post.meta.directory) %}
|
{%- set items = resource.pages|find_demo_in_component(post.meta.directory) %}
|
||||||
{%- for item in items %}
|
{%- for item in items %}
|
||||||
<CodeBox src="{{item.meta.filepath}}"></CodeBox>
|
<CodeBox src="{{item.meta.filepath}}"></CodeBox>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
@ -49,7 +49,7 @@ module.exports = function(nico) {
|
|||||||
return item;
|
return item;
|
||||||
}));
|
}));
|
||||||
},
|
},
|
||||||
under: function(pages, directory) {
|
find_demo_in_component: function(pages, directory) {
|
||||||
var ret = [];
|
var ret = [];
|
||||||
Object.keys(pages).forEach(function(key) {
|
Object.keys(pages).forEach(function(key) {
|
||||||
var page = pages[key];
|
var page = pages[key];
|
||||||
|
Loading…
Reference in New Issue
Block a user