设置 maxCount 为变量 (#30)

设置 maxCount: theme.article.related_posts.max_count
This commit is contained in:
偊由 2021-08-29 22:31:33 +08:00 committed by GitHub
parent eebc300aa6
commit 60e4be785c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;