设置 maxCount 为变量 (#30)
设置 maxCount: theme.article.related_posts.max_count
This commit is contained in:
parent
eebc300aa6
commit
60e4be785c
|
@ -5,7 +5,7 @@ function layoutDiv() {
|
||||||
el += '<div class="related-wrap reveal" id="related-posts">';
|
el += '<div class="related-wrap reveal" id="related-posts">';
|
||||||
el += popular_posts_wrapper({
|
el += popular_posts_wrapper({
|
||||||
title: __('meta.related_posts'),
|
title: __('meta.related_posts'),
|
||||||
json: popular_posts_json({ maxCount: 5 , ulClass: 'related-posts' , PPMixingRate: 0.2 , isImage: true , isExcerpt: true} , page )
|
json: popular_posts_json({ maxCount: theme.article.related_posts.max_count , ulClass: 'related-posts' , PPMixingRate: 0.2 , isImage: true , isExcerpt: true} , page )
|
||||||
});
|
});
|
||||||
el += '</div>';
|
el += '</div>';
|
||||||
return el;
|
return el;
|
||||||
|
|
Loading…
Reference in New Issue