Merge pull request #1718 from Windsland52/dev

fix(gitalk): 修复 MD5 函数导致的评论聚合问题
This commit is contained in:
Jerry Wong
2025-08-14 13:51:09 +08:00
committed by GitHub

View File

@@ -48,7 +48,7 @@ hexo.extend.helper.register('urlNoIndex', function (url = null, trailingIndex =
})
hexo.extend.helper.register('md5', function (path) {
return crypto.createHash('md5').update(decodeURI(this.url_for(path))).digest('hex')
return crypto.createHash('md5').update(decodeURI(this.url_for(path, {relative: false}))).digest('hex')
})
hexo.extend.helper.register('injectHtml', data => {