UNPKG

hexo-related-posts

Version:

Hexo plugin that generates related posts list with TF/IDF algorithm

9 lines (7 loc) 231 B
const postRender = (hexo) => function (data) { // Put information into page's metadata data.related_posts = (hexo.related_posts || {})[data.path] || []; return data; }; module.exports = postRender;