集成服务评论系统
Giscus 评论
将 Giscus 配置为 Solitude 4 顶层评论服务。
在 _config.solitude.yml 中配置公共行为并选择服务:
comment:
use: giscus
commentBarrage: false
lazyload: true
count: true
sidebar: false
pv: false
avatar: https://gravatar.com/avatar
giscus:
repo: owner/repository
repo_id: repository-id
category_id: discussion-category-id
theme:
light: light
dark: dark
option:服务配置是顶层区块,不是 comment 的子项。目标仓库需要启用 GitHub Discussions 并安装 Giscus App。Giscus 不支持 Solitude 最近评论列表或 PV 统计。
页面 Front Matter 可使用 comment: false 单独关闭评论。请验证首次加载、反复 PJAX 导航、发表评论、明暗模式、支持时的计数显示,以及生产域名白名单。
