Skip to content

Commit

Permalink
Fixed articles name in category
Browse files Browse the repository at this point in the history
  • Loading branch information
oss6 committed Jun 12, 2016
1 parent 431db96 commit f22903e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,12 @@ x.processFiles = function (action, pages, articles, cb) {
// Generate categories pages
g.type = 'category';
Object.keys(categoriesMapping).forEach(category => {
var articles = categoriesMapping[category];
var categoryArticles = categoriesMapping[category];
articles.sort((a1, a2) => utils.compareDates(a1.date, a2.date));

var categoryContext = {
category: category,
articles: articles,
articles: categoryArticles,
g: g
};
var res = nj.render('category.html', categoryContext);
Expand Down

0 comments on commit f22903e

Please sign in to comment.