postRender.js 231 B

123456789
  1. const postRender = (hexo) =>
  2. function (data) {
  3. // Put information into page's metadata
  4. data.related_posts = (hexo.related_posts || {})[data.path] || [];
  5. return data;
  6. };
  7. module.exports = postRender;