Permalink
Browse files

Merge pull request #484 from chenall/fix-issue-427

修正 list_categories的bug
  • Loading branch information...
2 parents f766c86 + b06ff38 commit b295c2cdb61eccb01b24221912304f615c51d7fe @tommy351 tommy351 committed Feb 9, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/plugins/helper/list.js
@@ -64,7 +64,10 @@ exports.list_categories = function(categories, options){
html += '</li>';
- if (i == 0 && depth > -1) arr.push(html);
+ if (i == 0 && depth > -1) {
+ arr.push(html);
+ html = '';
+ }
} else {
arr.push('<a class="' + className + '-link" href="' + root + cat.path + '">' +
cat.name +

0 comments on commit b295c2c

Please sign in to comment.