Compare commits
4 Commits
d77b91e27a
...
0909c8e9cc
Author | SHA1 | Date |
---|---|---|
AJ ONeal | 0909c8e9cc | |
AJ ONeal | 60e2764a1b | |
AJ ONeal | 11484146e9 | |
AJ ONeal | 7c10a5e993 |
|
@ -71,10 +71,10 @@
|
||||||
;
|
;
|
||||||
|
|
||||||
entities.forEach(function (f) {
|
entities.forEach(function (f) {
|
||||||
var set
|
var set;
|
||||||
, yindex = 3000 - f.year
|
var yindex = 3000 - f.year;
|
||||||
, mindex = 12 - f.month
|
var mindex = 12 - f.month;
|
||||||
;
|
var monthName = months[parseInt(f.month, 10)];
|
||||||
|
|
||||||
f.url = path.join(env.base_path, f.permalink);
|
f.url = path.join(env.base_path, f.permalink);
|
||||||
|
|
||||||
|
@ -84,10 +84,17 @@
|
||||||
set = yearsArr[yindex];
|
set = yearsArr[yindex];
|
||||||
|
|
||||||
if (!set.months[mindex]) {
|
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];
|
set = set.months[mindex];
|
||||||
|
|
||||||
|
f.month_name = months[parseInt(f.month, 10)];
|
||||||
|
f.month_number = parseInt(f.month, 10);
|
||||||
set.pages.push(f);
|
set.pages.push(f);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "desirae",
|
"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",
|
"description": "An in-browser static blog library and static site generator. Similar to Jekyll, Octopress, Nanoc, etc",
|
||||||
"main": "desirae.js",
|
"main": "desirae.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in New Issue