gitalk: enable: true github_id: jack-zheng # GitHub repo owner repo: hexo-comments # 新建的用于存放评论的repo client_id: d44xxxxxxe3a # GitHub Application Client ID client_secret: 9b3c4xxxxxb708ef # GitHub Application Client Secret admin_user: jack-zheng # GitHub repo owner and collaborators, only these guys can initialize gitHub issues distraction_free_mode: true # Facebook-like distraction free mode # Gitalk's display language depends on user's browser or system environment # If you want everyone visiting your site to see a uniform language, you can set a force language value # Available values: en | es-ES | fr | ru | zh-CN | zh-TW language:
PS: 用这种方案的话,默认只有 github 的用户才能评论,不过看这种文章的应该都是github用户,所以问题不大 PPS: 网上很多文章都会要你去配置 swig 文件,最新版的 next 已经不需要这个步骤了