hexo-theme-inside icon indicating copy to clipboard operation
hexo-theme-inside copied to clipboard

如何通过plugins支持giscus评论系统

Open system-thoughts opened this issue 3 years ago • 3 comments

当前按照https://blog.oniuo.com/theme-inside/docs/comments 中的配置方式新增giscus评论系统:https://github.com/system-thoughts/system-thoughts.github.io/commit/9bb166be0e378cdead979001a785beb4fd304a83

当前存在两个问题:

  1. giscus评论系统无法生效
  2. 原本的disqus貌似未被禁止

system-thoughts avatar Aug 07 '22 17:08 system-thoughts

https://github.com/ikeq/hexo-theme-inside/blob/master/_config.yml#L303

需要手动注释掉默认的 comment 设置

ikeq avatar Aug 08 '22 03:08 ikeq

默认的comment设置已经注释掉了哈,请见这次提交: https://github.com/system-thoughts/system-thoughts.github.io/commit/9bb166be0e378cdead979001a785beb4fd304a83

未注释之前,确实disqus.js在console中报错,注释掉之后没有这块报错了,但giscus插件也未使能

system-thoughts avatar Aug 08 '22 04:08 system-thoughts

showcase:https://blog.oniuo.com/theme-inside/docs/comments 提示在_config,yml中新增plugins中的js,参考了下主题的_config.yml,应该是_config.inside.yml中的plugins新增js,之前修改的是全局。

当前提交https://github.com/system-thoughts/system-thoughts.github.io/commit/f3979df8d81cd86a376bb6b020c1f224f7e5fc84 修改的是_config.inside.yml中的plugins 并注释掉comments,仍然无法显示评论

system-thoughts avatar Aug 08 '22 04:08 system-thoughts