Adding Disqus Comments to Hugo
- KeLin Cheng
- Tutorial
- October 25, 2024
Table of Contents
Hugo supports two popular comment systems:
- Disqus — a third-party social comment platform.
- Giscus — a comment system based on GitHub Issues/Discussions.
This post covers Disqus setup.
Step 1: Register on Disqus
Create an account on Disqus and get your Shortname.
Step 2: Hugo Configuration
In config/_default/params.toml:
[article]
showComments = true
In hugo.toml:
[services]
[services.disqus]
shortname = 'your-shortname'
References
- Disqus Official Documentation. https://help.disqus.com/
- Giscus Documentation. https://giscus.app/
- Hugo Disqus Template. https://gohugo.io/templates/internal/#disqus
Discussion Questions
- Disqus is convenient but raises privacy concerns (third-party tracking, ads in free tier). Compare Disqus and Giscus in terms of data ownership, user privacy, and maintenance burden. Which would you recommend for an academic blog and why?
- If you were to self-host a comment system (e.g., Isso, Remark42), what additional infrastructure and maintenance would be required? Under what circumstances is self-hosting worth the effort?