From 81c32df2f0d0634f11913022e2f882d6fabb6136 Mon Sep 17 00:00:00 2001 From: Mike Tang Date: Thu, 29 Sep 2016 12:23:29 +0800 Subject: [PATCH] bug fix 1. hexo g not work in some cases --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index abc8779..ddb80a4 100644 --- a/index.js +++ b/index.js @@ -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; } diff --git a/package.json b/package.json index 0eb3f93..89a0342 100644 --- a/package.json +++ b/package.json @@ -33,5 +33,5 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "version": "1.1.1" + "version": "1.1.3" }