2021-03-09 22:14:20 +08:00
|
|
|
<%
|
|
|
|
function layoutDiv() {
|
|
|
|
if (theme.article.related_posts.enable) {
|
|
|
|
var el = '';
|
2021-07-13 22:25:24 +08:00
|
|
|
el += '<div class="related-wrap reveal" id="related-posts">';
|
2021-03-09 22:14:20 +08:00
|
|
|
el += popular_posts_wrapper({
|
|
|
|
title: __('meta.related_posts'),
|
2021-08-29 22:31:33 +08:00
|
|
|
json: popular_posts_json({ maxCount: theme.article.related_posts.max_count , ulClass: 'related-posts' , PPMixingRate: 0.2 , isImage: true , isExcerpt: true} , page )
|
2021-03-09 22:14:20 +08:00
|
|
|
});
|
|
|
|
el += '</div>';
|
|
|
|
return el;
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<%- layoutDiv() %>
|