为Hugo添加utterances评论,原本选择的评论系统是gitment,但是此项目需要的验证系统有点复杂,综合各方面考量,决定更换评论系统的插件。

config.toml中添加

1
2
3
4
5
6
    [params.utteranc]
    enable = true
    repo = "owner/repo"    # 存储评论的Repo,格式为 owner/repo
    issueTerm = "pathname"  #表示你选择以那种方式让github issue的评论和你的文章关联。
    theme = "github-light" # 样式主题,有github-light和github-dark两种

为你设置的repo安装utterances

步骤1

步骤2

设置完毕打开博客认证即可使用