mirror of
https://github.com/imfing/hextra.git
synced 2025-10-24 14:30:19 -04:00
* chore(docs): rename `exampleSite` to `docs` and create `examples` * chore(build): update build script to support new version format and source directories; add v0.10 to documentation menu
881 B
881 B
title, linkTitle
| title | linkTitle |
|---|---|
| 评论系统 | 评论 |
Hextra 支持为您的网站添加评论系统。 目前支持 giscus。
giscus
giscus 是一个由 GitHub Discussions 驱动的评论系统。它是免费且开源的。
要启用 giscus,您需要在网站配置文件中添加以下内容:
params:
comments:
enable: false
type: giscus
giscus:
repo: <仓库>
repoId: <仓库 ID>
category: <分类>
categoryId: <分类 ID>
giscus 的配置可以从 giscus.app 网站生成。更多详情也可以在那里找到。
可以在页面的 front matter 中为特定页面启用或禁用评论:
---
title: 关于
comments: true
---