/** * https://github.com/tea3/hexo-related-popular-posts/wiki/More-Settings#customize-html */ 'use strict'; var util = require('hexo-util'); hexo.extend.helper.register('popular_posts_wrapper', function(args){ const title = args.title; const json = args.json.json; const cls = args.json.class; if (json == undefined || json.length == 0) { return ''; } const cfg = hexo.theme.config.article.related_posts; if (cfg.enable != true) return; var returnHTML = ""; var div = ` '; return div; });