开启评论
开启评论
下面我们来给博客添加一个评论功能,这里我们使用这个 utterances插件,它是一个基于 GitHub Issue 的,开源评论插件。
我们点击安装它,然后选择对应的仓库给它授权。然后在 GitHub 仓库,点击设置,找到 features 下面这个 Discussion 选项,然后点击勾选上这个选项。
接着我们需要修改 _config.fluid.yml 配置文件,在文件中填入下面的内容,保存就可以了。
comments:
# Up to two comments system, the first will be shown as default
# Leave it empty if you don't need comments
# Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk
# Format of two comments system : Disqus,Waline
use: utterances
# Display the comment name next to the button
text: true
# Lazyload: The comment system will be load when comment element enters the browser's viewport.
# If you set it to true, the comment count will be invalid
lazyload: false
# Display comment count in post's top_img
count: true
# Display comment count in Home Page
card_post_count: false
utterances:
repo: yzg011/com
issue_term: title
label: utterances
theme: github-light
theme_dark: github-dark
crossorigin: anonymous
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 个人博客!
评论
