Merge branch 'v1.0'

This commit is contained in:
AJ ONeal 2018-11-07 10:38:12 -07:00
commit 60e2764a1b
1 changed files with 12 additions and 5 deletions

View File

@ -71,10 +71,10 @@
;
entities.forEach(function (f) {
var set
, yindex = 3000 - f.year
, mindex = 12 - f.month
;
var set;
var yindex = 3000 - f.year;
var mindex = 12 - f.month;
var monthName = months[parseInt(f.month, 10)];
f.url = path.join(env.base_path, f.permalink);
@ -84,10 +84,17 @@
set = yearsArr[yindex];
if (!set.months[mindex]) {
set.months[mindex] = { month: months[parseInt(f.month, 10)], pages: [] };
set.months[mindex] = {
month_name: monthName
, month_number: mindex
, month: monthName
, pages: []
};
}
set = set.months[mindex];
f.month_name = months[parseInt(f.month, 10)];
f.month_number = parseInt(f.month, 10);
set.pages.push(f);
});