Skip to content

Commit

Permalink
Replace utils-merge with object-assign
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy351 committed Feb 11, 2015
1 parent 534d344 commit 9931b55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -13,12 +13,10 @@ $ npm install hexo-generator-category --save
## Options

``` yaml
category_dir: categories
category_generator:
per_page: 10
```

- **category_dir**: Category directory
- **per_page**: Posts displayed per page. (0 = disable pagination)

## License
Expand Down
6 changes: 4 additions & 2 deletions index.js
@@ -1,6 +1,8 @@
var merge = require('utils-merge');
'use strict';

hexo.config.category_generator = merge({
var assign = require('object-assign');

hexo.config.category_generator = assign({
per_page: hexo.config.per_page
}, hexo.config.category_generator);

Expand Down
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "hexo-generator-category",
"version": "0.1.0",
"version": "0.1.1",
"description": "Category generator for Hexo.",
"main": "index",
"scripts": {
Expand Down Expand Up @@ -36,6 +36,6 @@
},
"dependencies": {
"hexo-pagination": "0.0.2",
"utils-merge": "^1.0.0"
"object-assign": "^2.0.0"
}
}

0 comments on commit 9931b55

Please sign in to comment.