Skip to content

Commit

Permalink
Fix issue #4 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomap committed Nov 25, 2018
1 parent 9e5e7ae commit 4010b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = function(locals) {
// Daily
if (config.archive_generator.daily) {
var day = date.date();
if (!posts[year][month].hasOwnProperty(day)) {
if (!posts[year][month].hasOwnProperty('day')) {
posts[year][month].day = {};
}

Expand Down

0 comments on commit 4010b6b

Please sign in to comment.