iissnan / hexo-theme-next

Elegant theme for Hexo.
http://notes.iissnan.com
MIT License
15.88k stars 3.62k forks source link

关闭多说,启用 Disqus 失败 #1527

Closed iTofu closed 7 years ago

iTofu commented 7 years ago

Expected behavior (预期行为)

多说挂了,打算关闭多说评论系统,启用 Qisqus 评论系统。

Actual behavior (实际行为)

  1. 并未启用成功,hexo s or hexo d 后依然显示的是多说,查看:https://note.leodev.me

  2. 另外 Guidelines for Contributing 页面的 F.A.Q 链接挂了(DNS problem): https://github.com/iissnan/hexo-theme-next/blob/master/.github/CONTRIBUTING.md

Steps to reproduce the behavior (重现步骤)

  1. Theme _config.yml:

    # Duoshuo ShortName
    # duoshuo_shortname: leodev
    
    # Disqus
    disqus_shortname: leodev
    
    # Share
    duoshuo_share: false
    
    # Make duoshuo show UA
    # user_id must NOT be null when admin_enable is true!
    # you can visit http://dev.duoshuo.com get duoshuo user id.
    # duoshuo_info:
    #   ua_enable: false
    #   admin_enable: false
    #   user_id: xxx
    #   admin_nickname: xx
    #   data_author_key: 1
  2. Terminal:

    hexo clean
    hexo s # preview
    hexo g # general
    hexo d # deploy

NexT Informations

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

NexT Scheme:

Other Informations (Like Browser, System, Screenshots)

iissnan commented 7 years ago

Remove duoshuo_shortname from your theme configuration file and the newest commit in master branch now require disqus setting to be:

disqus:
  enable: true
  shortname: 
  count: true
iTofu commented 7 years ago

原来是错误地在 hexo 的 _config.yml 中设置了 duoshuo_shortname

longhaiqwe commented 7 years ago

为啥我把hexo下面的_config.yml所有有关duoshuo的行都删除了,还是会显示多说的评论栏啊?

iTofu commented 7 years ago

要用 release 里最新的版本,之前的版本有问题。

发自我的 iPad

在 2017年5月4日,上午11:17,longhai123 notifications@github.com 写道:

为啥我把hexo下面的_config.yml所有有关duoshuo的行都删除了,还是会显示多说的评论栏啊?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or mute the thread.