hexo-theme-stellar/layout/_partial/main/article/related_posts.ejs

17 lines
528 B
Plaintext
Raw Normal View History

2021-03-09 22:14:20 +08:00
<%
function layoutDiv() {
if (theme.article.related_posts.enable) {
var el = '';
2024-01-19 01:05:44 +08:00
el += `<div class="related-wrap${scrollreveal(' ')}" id="related-posts">`
2021-03-09 22:14:20 +08:00
el += popular_posts_wrapper({
2024-06-12 21:59:05 +08:00
title: theme.article.related_posts.title || __('meta.related_posts'),
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() %>