Skip to content

Comments & Engagement

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:

  1. Install the Giscus App on your repository
  2. Visit giscus.app to generate your configuration
  3. Add to 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'

Control exactly where comments appear using a 3-level hierarchy:

  1. Global Enable: params.yaml (Master switch)
  2. Section Defaults: hugo.yaml (Cascade settings)
  3. Per-Page: Front Matter (Granular control)

First, ensure the provider is configured and enabled in params.yaml:

hugoblox:
comments:
enable: true # Must be true for any comments to show

Automatically 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 default

Override the section default on a specific page using Front Matter:

---
title: My Controversial Post
commentable: false # Turn off comments just for this page
---