Skip to content

Commit

Permalink
Fixed category slug
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Mar 10, 2013
1 parent 0471743 commit 41beb15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/processor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ extend.processor.register(/^_posts\/([^_](?:(?!\/_).)*)$/, function(file, callba

var slug = _.map(arr.slice(0, i + 1), function(item){
return escape(categoryMap[item] || item);
}).join('/') + '/';
}).join('/');

var data = dbCats.findOne({slug: slug});
if (data){
Expand Down

0 comments on commit 41beb15

Please sign in to comment.