Skip to content

Commit

Permalink
fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
yscoder committed Mar 10, 2017
1 parent 1833eaf commit 8ff45c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
var generator = require('./lib/generator');

hexo.extend.generator.register('restful', function(site) {
return generator(Object.assign(hexo.config, hexo.theme.config), site);
return generator(Object.assign({}, hexo.config, hexo.theme.config), site);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-generator-restful",
"version": "0.1.0",
"version": "0.1.1",
"description": "Generate restful json data for Hexo plugins.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 8ff45c4

Please sign in to comment.