Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hexo搭载gittalk如何做到不同文章评论区互不干扰,目前来看评论会在多个地址同时出现 #569

Open
W1ndys opened this issue Jan 18, 2024 · 1 comment

Comments

@W1ndys
Copy link

W1ndys commented Jan 18, 2024

Gitalk 版本

late

报错信息?

浏览器版本?

Google Chrome

复现步骤?

@BreezeConfirmingWms
Copy link

BreezeConfirmingWms commented Feb 19, 2024

原来在使用github page部署的时候使用docsify也遇到这个问题,最后通过使得gitalk每个网页对象对应到唯一id解决

 <script src="https://cdn.jsdelivr.net/gh/gangdong/gangdong.github.io@dev/assets/js/md5.min.js"></script>
 <script>
 const gitalk = new Gitalk({
 clientID: ' ',
 ...
 // your configuration
id: md5(location.pathname)
})
</script>

不太专业,见谅。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants