Skip to content

Commit

Permalink
Fix wrong path for Gitalk
Browse files Browse the repository at this point in the history
* See also hexojs/hexo#3708
  • Loading branch information
stevenjoezhang authored and sslogan666 committed Feb 17, 2021
1 parent 4f2b4be commit 55cb798
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/helpers/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ hexo.extend.helper.register('post_nav', function(post) {

hexo.extend.helper.register('gitalk_md5', function(path) {
let str = this.url_for(path);
str = encodeURI(str);
str.replace('index.html', '');
return crypto.createHash('md5').update(str).digest('hex');
});
Expand Down

0 comments on commit 55cb798

Please sign in to comment.