Doc
Comment System
Sugo supports two comment providers: giscus and disqus.
Enable comments globally
Comments are disabled by default. In your root hugo.toml, set:
| |
If enabled = false, comments are off site-wide unless you explicitly enable them in a page frontmatter (shown later).
Giscus setup
To use Giscus, you need a GitHub repository with Discussions enabled, and you need the values from giscus.app.
In hugo.toml:
| |
The four required values are:
reporepoIdcategorycategoryId
If any of these four are missing, Sugo will not render the Giscus block.
Disqus setup
In hugo.toml:
| |
If shortname is empty, Sugo will not render the Disqus block.
Per-page override
You can disable comments on a specific post even if comments are enabled globally:
| |
You can also enable comments on a specific post even if global comments are disabled:
| |
Accepted truthy values in frontmatter are: true, 1, yes, on.
Where comments appear
Sugo renders comments in article-style pages (for example posts). Comments are not rendered for pages marked as:
| |
and not rendered for content inside the content/pages section.