Compare commits

..

4 Commits

Author SHA1 Message Date
AJ ONeal 0909c8e9cc v0.11.5: merge some leftovers 2018-11-07 10:38:50 -07:00
AJ ONeal 60e2764a1b Merge branch 'v1.0' 2018-11-07 10:38:12 -07:00
AJ ONeal 11484146e9 Merge branch 'master' into month_name 2017-05-18 15:28:17 -05:00
AJ ONeal 7c10a5e993 add month_name and month_number 2017-05-18 15:27:17 -05:00
2 changed files with 13 additions and 6 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);
});

View File

@ -1,6 +1,6 @@
{
"name": "desirae",
"version": "0.11.4",
"version": "0.11.5",
"description": "An in-browser static blog library and static site generator. Similar to Jekyll, Octopress, Nanoc, etc",
"main": "desirae.js",
"scripts": {