chore(i18n): improve translations of zh-cn (#14)

This commit is contained in:
Xin
2023-08-30 16:35:04 -04:00
committed by GitHub
parent e1a2109a68
commit b709452d16
17 changed files with 269 additions and 113 deletions

View File

@ -3,16 +3,17 @@ title: 配置文件
weight: 2
---
Hugo 从 Hugo 网站根目录下的 `hugo.yaml` 读取配置.
在配置文件中, 您可以配置站点的所有选项.
你可以在 `exampleSite/hugo.yaml` 中找到此站点的配置文件作为开始.
Hugo 从 Hugo 网站根目录下的 `hugo.yaml` 读取配置
在配置文件中您可以配置站点的所有选项
你可以在 `exampleSite/hugo.yaml` 中找到此站点的配置文件作为开始
<!--more-->
## Navigation
## 导航栏
### Menu
### 菜单
右上角的菜单在配置文件的 `menu.main` 中配置:
右上角的菜单在配置文件的 `menu.main` 中配置
```yaml {filename="hugo.yaml"}
menu:
@ -62,18 +63,18 @@ menu:
icon: github
```
这些菜单项可以通过设置 `weight` 进行排序.
这些菜单项可以通过设置 `weight` 进行排序
## 侧边栏
### 主侧边栏
主侧边栏是自动从 `content` 目录结构生成的.
有关更多详细信息,转至 [目录结构](/docs/guide/organize-files).
主侧边栏是自动从 `content` 目录结构生成的
有关更多详细信息,转至 [目录结构](/docs/guide/organize-files)
### 额外链接
侧边栏的额外链接在配置文件的 `menu.sidebar` 部分中配置:
侧边栏的额外链接在配置文件的 `menu.sidebar` 部分中配置
```yaml {filename="hugo.yaml"}
menu:
@ -94,7 +95,7 @@ menu:
### 目录
目录是根据内容文件中的标题自动生成的, 可以在 `front matter` 设置 `tocfalse` 来禁用它.
目录是根据内容文件中的标题自动生成的可以在 `front matter` 设置 `tocfalse` 来禁用它
```yaml {filename="content/docs/guide/configuration.md"}
---
@ -105,15 +106,15 @@ toc: false
### 编辑此页链接
要配置编辑此页链接, 我们可以在配置文件中设置 `params.editURL.base`:
要配置编辑此页链接我们可以在配置文件中设置 `params.editURL.base`
```yaml {filename="hugo.yaml"}
params:
editURL:
base: "https://github.com/your-username/your-repo/edit/main"
```
将为每个页面自动生成编辑链接.
如需为特定页面设置编辑链接,可以在页面的 `front matter` 中设置 `params.editURL`:
将为每个页面自动生成编辑链接
如需为特定页面设置编辑链接,可以在页面的 `front matter` 中设置 `params.editURL`
```yaml {filename="content/docs/guide/configuration.md"}
---