Add Utterances Comment System to Hugo

Why Utterances

Utterances is a comment system based on GitHub Issues. Compared with similar tools (such as Gitment/Gitalk/Disqus), common advantages are:

  • lightweight and fast
  • simple setup
  • comments are stored in GitHub Issues, easy to manage in open projects

Installation Steps

  1. Prepare a GitHub account and repository. Comments will be stored as issues in that repository.

  1. Install the Utterances GitHub App: https://github.com/apps/utterances

Install the app and grant access to the target repository.

  1. Add config in Hugo config.toml:
1
2
3
4
[params.utteranc]
    enable = true
    repo = "github_user/repository"
    issueTerm = "pathname"
记录并分享
Built with Hugo
Theme Stack designed by Jimmy