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