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

@ -9,22 +9,22 @@ prev: /docs
{{< icon "github" >}}&nbsp;[imfing/hextra-starter-template](https://github.com/imfing/hextra-starter-template)
你可以使用此模板仓库以便于快速开始.
通过使用上面的模板仓库,您将能够快速开始
<img src="https://docs.github.com/assets/cb-77734/mw-1440/images/help/repository/use-this-template-button.webp" width="500">
我们提供了一个 [GitHub Actions workflow](https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow) 来帮助你免费在 GitHub Pages 上自动构建和部署网站.
我们提供了一个 [GitHub Actions 工作流](https://docs.github.com/cn/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site#publishing-with-a-custom-github-actions-workflow),它可以帮助您自动构建并部署您的网站到 GitHub Pages,并免费托管。
[🌐 演示 ↗](https://imfing.github.io/hextra-starter-template/)
## 全新开始
## 作为新项目开始
### 先决条件
### 前提条件
我们开始之前, 必须先确保 [Hugo](https://gohugo.io/) 已被正确安装.
转至 Hugo 的 [official installation guide](https://gohugo.io/installation/) 以获取更多信息.
在开始之前,请确保我们已经安装了 [Hugo](https://gohugo.io/)
请参考 Hugo 的[官方安装指南](https://gohugo.io/installation/)以获取更多详情。
推荐使用 [Hugo modules](https://gohugo.io/hugo-modules/) 管理 Hugo 主题. 使用 Hugo modules 需要先正确安装 [Git](https://git-scm.com/) 和 [Go](https://go.dev/).
[Hugo 模块](https://gohugo.io/hugo-modules/)管理 Hugo 主题的推荐方式。要使用 Hugo 模块,我们需要安装 [Git](https://git-scm.com/) 和 [Go](https://go.dev/)
{{% steps %}}
@ -34,7 +34,7 @@ prev: /docs
$ hugo new site my-site --format=yaml
```
### 通过 module 配置 Hextra
### 通过模块配置 Hextra 主题
```shell
# 初始化 Hugo 模块
@ -45,7 +45,7 @@ $ hugo mod init github.com/username/my-site
$ hugo mod get github.com/imfing/hextra
```
编辑 `hugo.yaml` 以启用 Hextra:
编辑 `hugo.yaml` 以启用 Hextra
```yaml
module:
@ -55,7 +55,7 @@ module:
### 创建你的第一个内容页
现在, 创建一新的内容页, 比如 主页 和 文档:
让我们为主页和文档页面创建一新的内容页面:
```shell
$ hugo new content/_index.md
@ -68,13 +68,13 @@ $ hugo new content/docs/_index.md
$ hugo server --buildDrafts --disableFastRender
```
! 你现在可以在 `http://localhost:1313/` 看到你的新站点.
你现在可以在 `http://localhost:1313/` 看到你的新站点
{{% /steps %}}
## 接下来
你可以探索以下部分来添加更多内容:
你可以探索以下部分来添加更多内容
{{< cards >}}
{{< card link="../guide/organize-files" title="目录结构" icon="document-duplicate" >}}