gitment icon indicating copy to clipboard operation
gitment copied to clipboard

同一个页面,带锚点#more会初始化一条新的issue

Open haowanxing opened this issue 7 years ago • 3 comments

初始化评论针对URL创建新issue,如果url中带有Get参数或锚点,会被判定成一个新的页面,形成一个新的评论区域。 期望解决这个问题,不然大家看到的同样的页面,评论内容却是分开的。

haowanxing avatar Aug 21 '18 03:08 haowanxing

可以修改一下这里:

        var gitment = new {{CommentsClass}}({
-           id: document.location.href,
+           id: md5(window.location.pathname),
            owner: '{{ theme.gitment.github_user }}',
            repo: '{{ theme.gitment.github_repo }}',

将其使用window.location.pathname处理。 这个详细的 在Gitment/Gitalk自动初始化中除了这个配置,还带了个脚本😂

madordie avatar Aug 30 '18 06:08 madordie

@madordie 想法很好,完美解决!

haowanxing avatar Sep 10 '18 05:09 haowanxing

https://advance-esthetic.us/rf-facial-machines

sariabiha avatar Feb 11 '22 11:02 sariabiha