Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
1. hexo g not work in some cases
  • Loading branch information
D0n9X1n committed Sep 29, 2016
1 parent c18b499 commit 81c32df
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 @@ -25,7 +25,7 @@ var CryptoJS = require("crypto-js");

hexo.extend.filter.register("after_post_render", function (data) {
// close the encrypt function
if (!('encrypt' in hexo.config && 'enable' in hexo.config && hexo.config.encrypt.enable)) {
if (!('encrypt' in hexo.config && hexo.config.encrypt && 'enable' in hexo.config.encrypt && hexo.config.encrypt.enable)) {
return data;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.1.1"
"version": "1.1.3"
}

0 comments on commit 81c32df

Please sign in to comment.