【发布时间】:2017-03-25 07:32:55
【问题描述】:
我有一个 jekyll 博客,在 github 上托管了一个 disqus 评论框,但是当有人通过 https 进行 cmets 时,这些 cmets 出现在与通过 http 发表评论的单独线程中。
有没有办法让两个 url 共享同一个 disqus 线程?
谢谢
【问题讨论】:
标签: github jekyll blogs disqus
我有一个 jekyll 博客,在 github 上托管了一个 disqus 评论框,但是当有人通过 https 进行 cmets 时,这些 cmets 出现在与通过 http 发表评论的单独线程中。
有没有办法让两个 url 共享同一个 disqus 线程?
谢谢
【问题讨论】:
标签: github jekyll blogs disqus
下面是如何避免线程分裂的解释:
https://help.disqus.com/customer/en/portal/articles/2158629
基本上,在嵌入代码中定义 url 和 identifier 配置变量,以便线程与规范 URL 而不是窗口 URL 相关。
这是配置的相关部分:
var disqus_config = function () {
this.page.url = PAGE_URL; // The page's canonical URL
this.page.identifier = PAGE_IDENTIFIER; // The page's unique identifier
}
【讨论】: