diff --git a/exampleSite/content/authors/_index.zh-cn.md b/exampleSite/content/authors/_index.zh-cn.md index 75a2f91e..d977b451 100644 --- a/exampleSite/content/authors/_index.zh-cn.md +++ b/exampleSite/content/authors/_index.zh-cn.md @@ -2,4 +2,4 @@ title: "作者列表示例" --- -在你的文章中添加不同作者分类的简单示例。 +在你的文章中添加不同作者的简单示例。 diff --git a/exampleSite/content/authors/nunocoracao/_index.zh-cn.md b/exampleSite/content/authors/nunocoracao/_index.zh-cn.md index caf70558..d0c02a24 100644 --- a/exampleSite/content/authors/nunocoracao/_index.zh-cn.md +++ b/exampleSite/content/authors/nunocoracao/_index.zh-cn.md @@ -2,4 +2,4 @@ title: "Nuno Coração" --- -Nuno's awesome dummy bio. +假装这里有一份 Nuno 的简介。 diff --git a/exampleSite/content/authors/secondauthor/_index.zh-cn.md b/exampleSite/content/authors/secondauthor/_index.zh-cn.md index 039f902d..2082345f 100644 --- a/exampleSite/content/authors/secondauthor/_index.zh-cn.md +++ b/exampleSite/content/authors/secondauthor/_index.zh-cn.md @@ -2,4 +2,4 @@ title: "Dummy Second Author" --- -Dummy Second Author's awesome dummy bio. +假装这里有一份第二位作者的简介。 diff --git a/exampleSite/content/docs/getting-started/index.zh-cn.md b/exampleSite/content/docs/getting-started/index.zh-cn.md index b506cf44..f7b8ad1d 100644 --- a/exampleSite/content/docs/getting-started/index.zh-cn.md +++ b/exampleSite/content/docs/getting-started/index.zh-cn.md @@ -116,8 +116,7 @@ Blowfish 定义了一种由三种主色调构成的配色方案,每种主色 #### Slate {{< swatches "#6B7280" "#64748b" "#6B7280" >}} -尽管这些事默认的方案,你也可以创建属于你自己的,详细信息请参阅 [高级自定义]({{< ref "advanced-customisation#colour-schemes" >}}) 部分。 -尽管这些事默认的方案,你也可以创建属于你自己的,详细信息请参阅 [高级自定义]({{< ref "advanced-customisation#colour-schemes" >}}) 部分。 +这些是内置的配色方案,你也可以去自定义这一部分,请参阅 [高级自定义]({{< ref "advanced-customisation#colour-schemes" >}}) 。 ## 整理内容 diff --git a/exampleSite/content/guides/_index.zh-cn.md b/exampleSite/content/guides/_index.zh-cn.md index 8286ffac..e2c4d1a3 100755 --- a/exampleSite/content/guides/_index.zh-cn.md +++ b/exampleSite/content/guides/_index.zh-cn.md @@ -1,6 +1,6 @@ --- -title: "Recipes" -description: "Recipes, guides, and tutorials for Blowfish" +title: "使用指南" +description: "Blowfish 的使用指南和教程" cascade: showDate: false @@ -9,11 +9,11 @@ cascade: --- {{< lead >}} -Recipes, guides, and tutorials for Blowfish +Blowfish 的使用指南和教程 {{< /lead >}} -**Blowfish user?** To add your guide to this list, [check the template](/guides/template/). +**您是 Blowfish 的用户吗?** 要将您自己编写的指南添加到此列表,请查看[参考模板](/guides/template/)。 -This section contains guides for a variety of scenarios on how to configure your theme. If you're new, check out the [Installation]({{< ref "docs/installation" >}}) guide to begin or visit the [Samples]({{< ref "samples" >}}) section to see what Blowfish can do. +本部分包含有关如何配置主题的各种指南。如果您是新用户,请查看 [安装]({{< ref "docs/installation" >}}) 指南或查看 [示例]({{< ref "samples" >}}) 部分来了解 Blowfish 能做出什么效果的网页。 --- diff --git a/exampleSite/content/guides/template/index.zh-cn.md b/exampleSite/content/guides/template/index.zh-cn.md index 262ad18a..9b9f5491 100644 --- a/exampleSite/content/guides/template/index.zh-cn.md +++ b/exampleSite/content/guides/template/index.zh-cn.md @@ -1,36 +1,37 @@ --- -title: "Recipe Template" +title: "使用指南模板" date: 1987-12-22 draft: false -description: "Template for creating a recipe for Blowfish theme" -tags: ["template"] +description: "用于创建 Blowfish 主题使用指南的模板" +tags: ["模板"] --- -Thank you for wanting to contribute to Blowfish's community. +感谢您愿意为 Blowfish 社区做出贡献。 -## How to start? -This is a template article that will explain how to create a new article for Blowfish's guide section. +## 如何开始? +这是一篇模板文章,将解释如何为 Blowfish 的指南部分创建新文章。 -## Clone Blowfish -Clone this repo with the following command: +## Clone Blowfish 仓库 +使用以下命令 clone 此仓库: ```bash git clone https://github.com/nunocoracao/blowfish.git ``` -## Setup your files -Copy and paste the entire folder where this `.md` file is. +## 配置您的文档 +复制并粘贴您要创建的 `.md` 文档所在的整个文件夹。 +使用 `YYYYMM-<英文标题>` 的格式(例如:`200601-tutorial`)命名文档,不允许有空格。 -Name it using the following convention `YYYYMM-title`, no white spaces are allowed. +## 编写您的指南 +编写您的指南 :) -## Write your guide -Write your guide :) - -Use the `img` folder to place your images and use them: +在 `img` 文件夹中储存图像并按下述格式引用它们: +``` md ![]() +```  -## Open a PR -Open a PR and thanks in advance for your contribution. \ No newline at end of file +## 提交 PR +提交您的 PR ,Blowfish 团队在这里提前感谢您对我们这个项目的贡献。 \ No newline at end of file diff --git a/exampleSite/content/samples/_index.zh-cn.md b/exampleSite/content/samples/_index.zh-cn.md index ed5441b9..723856be 100644 --- a/exampleSite/content/samples/_index.zh-cn.md +++ b/exampleSite/content/samples/_index.zh-cn.md @@ -12,7 +12,7 @@ cascade: Blowfish 让你的内容栩栩如生。 :heart_eyes: {{< /lead >}} -本节包含一些演示页面,展示了Blowfish如何呈现不同类型的内容。你还可以看到一个[分类列表]({{< ref "tags" >}})页面的示例。 +本节包含一些示例页面,展示了Blowfish如何呈现不同类型的内容。你还可以参考[标签]({{< ref "tags" >}})页面的示例。 _**旁注:** 这个页面只是一个标准的Blowfish文章列表,并且已经配置了Hugo来生成一个 `samples` 内容类型并显示文章摘要。_ diff --git a/exampleSite/content/samples/charts/index.zh-cn.md b/exampleSite/content/samples/charts/index.zh-cn.md index 3d916f4f..0e2ca29c 100755 --- a/exampleSite/content/samples/charts/index.zh-cn.md +++ b/exampleSite/content/samples/charts/index.zh-cn.md @@ -1,28 +1,28 @@ --- -title: "Charts" +title: "图表" date: 2019-03-06 -description: "Guide to Chart.js usage in Blowfish" -summary: "Blowfish includes Chart.js for powerful charts and data visualisations." -tags: ["chart", "sample", "graph", "shortcodes"] +description: "在Blowfish 中使用 Chart.js 指南" +summary: "Blowfish 包含 Chart.js,可实现强大的图表和数据可视化。" +tags: ["表格", "示例", "图片", "简码"] showDate: false type: 'sample' --- -Blowfish includes support for Chart.js using the `chart` shortcode. Simply wrap the chart markup within the shortcode. Blowfish automatically themes charts to match the configured `colorScheme` parameter, however the colours can be customised using normal Chart.js syntax. +Blowfish 使用 `chart` 简码来调用 Chart.js。Blowfish 会自动为图表设置主题以匹配配置的 `colorScheme` 参数,但是可以使用 Chart.js 语法来自定义图表颜色。 -Refer to the [chart shortcode]({{< ref "docs/shortcodes#chart" >}}) docs for more details. +有关更多详细信息,请参阅 [图表简码]({{< ref "docs/shortcodes#chart" >}}) 文档。 -The examples below are a small selection taken from the [official Chart.js docs](https://www.chartjs.org/docs/latest/samples). You can also [view the page source](https://raw.githubusercontent.com/nunocoracao/blowfish/main/exampleSite/content/samples/charts/index.md) on GitHub to see the markup. +下面的示例是从 [Chart.js 官方文档](https://www.chartjs.org/docs/latest/samples) 中选取的一小部分。您还可以在 GitHub 上[查看页面源代码](https://raw.githubusercontent.com/nunocoracao/blowfish/main/exampleSite/content/samples/charts/index.md) 查看书写方式。 -## Bar chart +## 柱形图 {{< chart >}} type: 'bar', data: { - labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], + labels: ['一月', '二月', '三月', '四月', '五月', '六月', '七月'], datasets: [{ - label: 'My First Dataset', + label: '我的第一组数据', data: [65, 59, 80, 81, 56, 55, 40], backgroundColor: [ 'rgba(255, 99, 132, 0.2)', @@ -48,15 +48,15 @@ data: { {{< /chart >}} -## Line chart +## 折线图 {{< chart >}} type: 'line', data: { - labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], + labels: ['一月', '二月', '三月', '四月', '五月', '六月', '七月'], datasets: [{ - label: 'My First Dataset', + label: '我的第一组数据', data: [65, 59, 80, 81, 56, 55, 40], tension: 0.2 }] @@ -64,15 +64,15 @@ data: { {{< /chart >}} -## Doughnut chart +## 扇形图 {{< chart >}} type: 'doughnut', data: { - labels: ['Red', 'Blue', 'Yellow'], + labels: ['红', '蓝', '黄'], datasets: [{ - label: 'My First Dataset', + label: '我的第一组数据', data: [300, 50, 100], backgroundColor: [ 'rgba(255, 99, 132, 0.7)', diff --git a/exampleSite/content/samples/diagrams-flowcharts/index.zh-cn.md b/exampleSite/content/samples/diagrams-flowcharts/index.zh-cn.md index b8836b8a..bd9f9bba 100755 --- a/exampleSite/content/samples/diagrams-flowcharts/index.zh-cn.md +++ b/exampleSite/content/samples/diagrams-flowcharts/index.zh-cn.md @@ -1,19 +1,19 @@ --- -title: "Diagrams and Flowcharts" +title: "流程图和思维导图" date: 2019-03-06 -description: "Guide to Mermaid usage in Blowfish" -summary: "It's easy to add diagrams and flowcharts to articles using Mermaid." -tags: ["mermaid", "sample", "diagram", "shortcodes"] +description: "Blowfish 中 Mermaid 的使用指南" +summary: "使用 Mermaid 可以轻松地将图表和流程图添加到文章中。" +tags: ["mermaid", "示例", "流程图", "简码"] type: 'sample' --- -Mermaid diagrams are supported in Blowfish using the `mermaid` shortcode. Simply wrap the diagram markup within the shortcode. Blowfish automatically themes Mermaid diagrams to match the configured `colorScheme` parameter. +Blowfish 使用 `mermaid` 简码可以调用。Blowfish 会根据配置的 `colorScheme` 参数自动调用 Mermaid 生成流程图或者思维导图。 -Refer to the [mermaid shortcode]({{< ref "docs/shortcodes#mermaid" >}}) docs for more details. +有关更多详细信息,请参阅 [Mermaid 简码]({{< ref "docs/shortcodes#mermaid" >}}) 文档。 -The examples below are a small selection taken from the [official Mermaid docs](https://mermaid-js.github.io/mermaid/). You can also [view the page source](https://raw.githubusercontent.com/nunocoracao/blowfish/main/exampleSite/content/samples/diagrams-flowcharts/index.md) on GitHub to see the markup. +下面的示例是从[官方 Mermaid 文档](https://mermaid-js.github.io/mermaid/) 中选取的一小部分。您还可以在 GitHub 上[查看页面源代码](https://raw.githubusercontent.com/nunocoracao/blowfish/main/exampleSite/content/samples/diagrams-flowcharts/index.md) 查看书写方法。 -## Flowchart +## 流程图