Skip to content

Commit

Permalink
Merge pull request #5 from flashlab/patch-1
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
MikeCoder authored Oct 23, 2016
2 parents cf3447b + ed7e825 commit 00e3605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ hexo.extend.filter.register("after_post_render", function (data) {
data.content = CryptoJS.enc.Base64.stringify(data.content);
data.content = CryptoJS.AES.encrypt(data.content, data.password).toString();
data.content = data.template.replace('{{content}}', data.content);
data.content = '<h4 class="hexo-blog-encrypt-message">' + data.message + '</h4>' + data.content;
data.content = '<span class="hexo-blog-encrypt-message">' + data.message + '</span>' + data.content;
data.content = '<script src="' + hexo.config.root + 'mcommon.js"></script>' + data.content;
data.content = '<script src="' + hexo.config.root + 'crypto-js.js"></script>' + data.content;

Expand Down Expand Up @@ -86,7 +86,7 @@ hexo.extend.filter.register("after_post_render", function (data) {
data.content = CryptoJS.enc.Base64.stringify(data.content);
data.content = CryptoJS.AES.encrypt(data.content, hexo.config.encrypt.blogs[i].password).toString();
data.content = hexo.config.encrypt.blogs[i].template.replace('{{content}}', data.content);
data.content = '<h4 class="hexo-blog-encrypt-message">' + hexo.config.encrypt.blogs[i].message + '</h4>' + data.content;
data.content = '<span class="hexo-blog-encrypt-message">' + hexo.config.encrypt.blogs[i].message + '</span>' + data.content;
data.content = '<script src="' + hexo.config.root + 'mcommon.js"></script>' + data.content;
data.content = '<script src="' + hexo.config.root + 'crypto-js.js"></script>' + data.content;

Expand Down

0 comments on commit 00e3605

Please sign in to comment.