Closed qaqland closed 2 years ago
Makes some changes to support custom comment and other user's script.
Following is details in Chinese:
Hugo 会优先从用户的 layouts 读取 partials 而不是 themes 所以我删掉了原有的具体的评论实现,加入了一个 custom 如果需要引入评论的脚本 需要自己去对应插件的网站,把脚本和配置粘贴到 custom
我不知道能不能 merge,所以原有的相关配置文件没有动
(有个缩进的改动是不小心点了代码格式化hh)
如果可行,大概还需要给几个 example 和一些引导,不过也不难 QAQ
The auto theme for giscus can be a event function. I think it's not hard to work. https://github.com/giscus/giscus/blob/main/ADVANCED-USAGE.md#parent-to-giscus-message-events
Makes some changes to support custom comment and other user's script.
Following is details in Chinese:
Hugo 会优先从用户的 layouts 读取 partials 而不是 themes 所以我删掉了原有的具体的评论实现,加入了一个 custom 如果需要引入评论的脚本 需要自己去对应插件的网站,把脚本和配置粘贴到 custom
我不知道能不能 merge,所以原有的相关配置文件没有动
(有个缩进的改动是不小心点了代码格式化hh)