From fdfee54f6047249e964fb6c93da1a80d3dd544ed Mon Sep 17 00:00:00 2001 From: iLeoDo Date: Wed, 28 Aug 2013 17:48:48 +0800 Subject: [PATCH] fix mistake in tagcloud.js the `result` returned include a variale root, which is not refered in `tagcloud.js`. so the after require(`lodash`), config and root should be set. --- lib/plugins/helper/tagcloud.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/plugins/helper/tagcloud.js b/lib/plugins/helper/tagcloud.js index 1f8de608db..0fd48d215d 100644 --- a/lib/plugins/helper/tagcloud.js +++ b/lib/plugins/helper/tagcloud.js @@ -1,4 +1,6 @@ -var _ = require('lodash'); +var _ = require('lodash'), + config = hexo.config, + root = config.root; module.exports = function(tags, options){ if (!options){