hugo主题maupassant开启utterances讨论
如何在hugo主题maupassant下开启讨论…
utteranc
1.install utteranc app by repo
建议仅仅安装blog的仓库
2.online configure
1.填写issues的repo
2.选择post形式(建议title形式)
3.选择主题
4.查看代码及参数
<script src="https://utteranc.es/client.js"
repo="xxx" // repo
issue-term="title" //create issues style
theme="github-light"
crossorigin="anonymous"
async>
</script>
3.修改config.toml
## 配置 utteranc评论,教程参考 https://utteranc.es/
[params.utteranc]
enable = true
repo = "xxxx" ##换成自己得
issueTerm = "title"
theme = "github-light"
4.提交测试
文章底部出现如下,说明开启成功(需要登陆github才可以评价)