imsun / gitment

A comment system based on GitHub Issues.
https://imsun.github.io/gitment/
MIT License
4.06k stars 347 forks source link

有没有遇到评论一条,所有文章都会出现的这种情况? #126

Open RockyQu opened 6 years ago

RockyQu commented 6 years ago

是哪里出问题哩?

spencerwooo commented 6 years ago

img 如图,引用的时候需要设置一个 id 作为页面唯一标定符。 如果是默认的 id = location.href 就是所有的页面都是一样的评论。

fanandli commented 6 years ago

同遇到。。。上面的方法并没有解决。。。求教

Sherrytq commented 6 years ago

同没有解决。。。。

felix-fei-fei commented 6 years ago

我的解决方法:id: '<%=page.path.replace(/\//g,"")%>'。 demo www.crazyqq.com

ttfisher commented 6 years ago

也遇到同样的问题,折腾了大半天,最终发现是单引号的问题(id后面直接写地址引用即可,不用单引号加尖括号引用),不知道其他同学是不是也是这个原因: id: document.location.href,

AladengodmanVicky commented 5 years ago

现在这个问题有结果了吗

iloveflag commented 4 years ago

我也是,有几篇文章用的是同一个issue