【问题标题】:Same disqus thread on http and httpshttp 和 https 上的相同 disqus 线程
【发布时间】:2017-03-25 07:32:55
【问题描述】:

我有一个 jekyll 博客,在 github 上托管了一个 disqus 评论框,但是当有人通过 https 进行 cmets 时,这些 cmets 出现在与通过 http 发表评论的单独线程中。

有没有办法让两个 url 共享同一个 disqus 线程?

谢谢

【问题讨论】:

    标签: github jekyll blogs disqus


    【解决方案1】:

    下面是如何避免线程分裂的解释:

    https://help.disqus.com/customer/en/portal/articles/2158629

    基本上,在嵌入代码中定义 urlidentifier 配置变量,以便线程与规范 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
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-07-17
      • 2014-03-21
      • 1970-01-01
      • 1970-01-01
      • 2011-03-03
      • 1970-01-01
      • 2012-12-29
      相关资源
      最近更新 更多