Skip to content

Commit

Permalink
Fix list_archives helper #421
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Jan 9, 2014
1 parent 8c33222 commit 2e592eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/helper/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ exports.list_tags = function(tags, options){
exports.list_archives = function(options){
var options = _.extend({
type: 'monthly',
order: 1,
order: -1,
show_count: true,
style: 'list',
separator: ', ',
Expand Down Expand Up @@ -222,7 +222,7 @@ exports.list_archives = function(options){

if (!monthly.length) continue;

item(i + '/' + (j < 10 ? '0' + j : j), moment({y: i, m: j}).format(format), monthly.length);
item(i + '/' + (j < 10 ? '0' + j : j), moment({year: i, month: j - 1}).format(format), monthly.length);
}
}

Expand Down

0 comments on commit 2e592eb

Please sign in to comment.