-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: update zh-cn translation (#236)
* Update customization.zh-cn.md * Translate: Update translation of outdated docs * Fix error
- Loading branch information
1 parent
fd9a87a
commit 10f1d85
Showing
4 changed files
with
232 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
title: 评论系统 | ||
linkTitle: Comments | ||
--- | ||
|
||
Hextra 支持在你的网站中添加评论系统。 | ||
目前已经支持 [giscus](https://giscus.app/). | ||
|
||
<!--more--> | ||
|
||
## giscus | ||
|
||
[giscus](https://giscus.app/) 是由 [GitHub Discussions](https://docs.github.com/en/discussions)驱动的评论系统。Giscus 免费并且开源。 | ||
|
||
如需启用 Giscus, 你需要在配置文件中添加以下内容: | ||
|
||
```yaml {filename="hugo.yaml"} | ||
params: | ||
comments: | ||
enable: false | ||
type: giscus | ||
|
||
giscus: | ||
repo: <repository> | ||
repoId: <repository ID> | ||
category: <category> | ||
categoryId: <category ID> | ||
``` | ||
Giscus 配置可以参考 [giscus.app](https://giscus.app/),还可以在那里找到更多详细信息。 | ||
可以在 front matter 中启用或禁用特定页面的评论: | ||
```yaml {filename="content/docs/about.md"} | ||
--- | ||
title: About | ||
comments: true | ||
--- | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters