Skip to content

Commit

Permalink
Merge branch 'master' into support-version-active-lts-or-latest
Browse files Browse the repository at this point in the history
  • Loading branch information
tomap authored Nov 25, 2018
2 parents 9bc0457 + 9e5e7ae commit 76255f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

'use strict';

var assign = require('object-assign');

// when archive disabled pagination, per_page should be 0.
var per_page;

Expand All @@ -15,7 +13,7 @@ if (hexo.config.archive === 1) {
per_page = hexo.config.per_page;
}

hexo.config.archive_generator = assign({
hexo.config.archive_generator = Object.assign({
per_page: per_page,
yearly: true,
monthly: true,
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
"mocha": "^5.2.0"
},
"dependencies": {
"hexo-pagination": "0.1.0",
"object-assign": "^2.0.0"
"hexo-pagination": "0.1.0"
},
"engines": {
"node": "^6.9 || ^8.9 || ^10.13 || >=11"
}
}
}

0 comments on commit 76255f3

Please sign in to comment.