Integrating Disqus with Hugo

- Pitfall

Hugo has built-in support for Disqus. In theory, you only need to set the disqusShortname attribute at the top level of your site’s config.toml file. However, there are some pitfalls when actually using it. Here are the specific steps.

  1. Register your own account on the Disqus website.
  2. After logging in to the Disqus website, go to Settings in the upper right corner, then select Moderation on the left side. Here, create a new site, and the site name ({site_name}.disqus.com) should be used as the value for disqusShortname.
  3. Once the site is created, choose the Free Plan on the Billing page.
  4. Set the disqusShortname in the config.toml file of Hugo.

Other minor issues: