Adding Disqus Comments to Hugo

Hugo supports two popular comment systems:

  1. Disqus — a third-party social comment platform.
  2. 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

Discussion Questions

  1. 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?
  2. 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?
comments powered by Disqus

Related Posts

Building a Static Blog with Hugo + GitHub Pages

References: Reference 1, Reference 2

1. Preparation

1.1 Install Git

Git is a distributed version control system. Common commands: git init, git clone, git add, git commit, git push, git pull, git branch, git merge.

Read More

HMOs Cell Factory — Conference Notes

Human milk oligosaccharides (HMOs) are a class of structurally diverse complex carbohydrates that serve as prebiotics, anti-adhesive antimicrobials, and immunomodulators in infant nutrition. Industrial production of HMOs via microbial fermentation has attracted significant interest, yet several bottlenecks remain: low substrate specificity of glycosyltransferases, difficult co-regulation of precursor synthesis pathways, and unclear key regulatory targets. This post summarizes conference notes from LiuLong (JiangNan University) on a series of strategies addressing these challenges through an integrated synthetic biology workflow.

Read More

Git Basic Syntax Notes

Basic Git workflow for beginners.

1. Install Git

Download from https://git-scm.com/. Verify: git --version

Read More
/js/script.js