Giscus
Recommended. Uses GitHub Discussions. Great for developer-focused sites. Free and open source.
Engage with your audience by enabling comments on your posts and pages. HugoBlox supports several providers, ranging from privacy-focused options to social integrations.
Giscus
Recommended. Uses GitHub Discussions. Great for developer-focused sites. Free and open source.
Disqus
Widely adopted but includes ads and tracking.
Commento
Privacy-focused, lightweight, and ad-free.
Social
Link to Twitter/X threads or other social media posts for discussion.
Configure your chosen provider in config/_default/params.yaml:
params.yaml:hugoblox: comments: enable: true provider: giscus giscus: repo: 'username/repo' repo_id: 'R_kgDO...' category: 'Comments' category_id: 'DIC_kwDO...'
# Optional Customization: mapping: 'pathname' # pathname (default) | url | title | og:title theme: 'light' # light | dark | transparent_dark | preferred_color_scheme language_code: 'en' # defaults to 'en'params.yaml:hugoblox: comments: enable: true provider: disqus disqus: shortname: 'your-shortname'If you self-host Commento, provide your server URL:
hugoblox: comments: enable: true provider: commento commento: url: 'https://cdn.commento.io'Control exactly where comments appear using a 3-level hierarchy:
params.yaml (Master switch)hugo.yaml (Cascade settings)First, ensure the provider is configured and enabled in params.yaml:
hugoblox: comments: enable: true # Must be true for any comments to showAutomatically enable/disable comments for entire folders (e.g., all posts) in hugo.yaml:
cascade: - target: path: /post/** params: commentable: true - target: path: /docs/** params: commentable: false # Disable on docs by defaultOverride the section default on a specific page using Front Matter:
---title: My Controversial Postcommentable: false # Turn off comments just for this page---