Adding Comments to Posts Using Disqus

Many blogs include a commenting system that lets your community of readers interact with your posts. Hugo only generates static sites, but you can add support for comments using Disqus,[27] a platform that hosts comments and provides tools for community moderation. Hugo has built-in support for Disqus. To use it, you’ll create a Disqus account for your site, set the site name in your Hugo site’s configuration file, and include the Disqus template on your pages.

 

Create a new account on Disqus for your site. Once your account is created, select the option to use Disqus on your site. Disqus will ask you to provide a few pieces of info about your site:

Fill in the name of your site and select the appropriate ...

Get Build Websites with Hugo now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.