From e009305c4ed09dfdc876d9ca91feb4a844f6a288 Mon Sep 17 00:00:00 2001 From: Aphcity Date: Thu, 21 Mar 2024 13:55:45 +0800 Subject: [PATCH 1/6] 2 small translation fixes - getting-started - authors --- exampleSite/content/authors/_index.zh-cn.md | 2 +- exampleSite/content/docs/getting-started/index.zh-cn.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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/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" >}}) 。 ## 整理内容 From 469035225593f2e79c148ab2d0fb9bc1a5e5da5e Mon Sep 17 00:00:00 2001 From: Aphcity Date: Thu, 21 Mar 2024 14:09:39 +0800 Subject: [PATCH 2/6] Add guides template zh-CN translation --- .../content/guides/template/index.zh-cn.md | 35 ++++++++++--------- 1 file changed, 18 insertions(+), 17 deletions(-) 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 ![]() +``` ![Example](img/example.jpg "Image caption") -## 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 From 7df76e9a32265da2833c5834ccc4c3824093ee19 Mon Sep 17 00:00:00 2001 From: Aphcity Date: Thu, 21 Mar 2024 14:34:30 +0800 Subject: [PATCH 3/6] Add chart sample zh-CN translation - .exampleSite\content\samples\charts\index.zh-cn.md - fix a tag in icons sample --- .../content/samples/charts/index.zh-cn.md | 32 +++++++++---------- .../content/samples/icons/index.zh-cn.md | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) 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/icons/index.zh-cn.md b/exampleSite/content/samples/icons/index.zh-cn.md index c956e657..6cb7bc38 100644 --- a/exampleSite/content/samples/icons/index.zh-cn.md +++ b/exampleSite/content/samples/icons/index.zh-cn.md @@ -5,7 +5,7 @@ lastmod: 2022-03-09 draft: false description: "Blowfish 支持的图标。" slug: "icons" -tags: ["图标", "示例", "短代码"] +tags: ["图标", "示例", "简码"] type: 'sample' --- From 32b8aa587634b4d12804533d1ff806bb726d289d Mon Sep 17 00:00:00 2001 From: Aphcity Date: Thu, 21 Mar 2024 15:05:17 +0800 Subject: [PATCH 4/6] Translate guides, sample(Diagram, Emoji, External) - exampleSite\content\guides\_index.zh-cn.md - exampleSite\content\samples\diagrams-flowcharts\index.zh-cn.md - exampleSite\content\samples\emoji\index.zh-cn.md - exampleSite\content\samples\external\index.zh-cn.md --- exampleSite/content/guides/_index.zh-cn.md | 10 ++++----- .../diagrams-flowcharts/index.zh-cn.md | 22 +++++++++---------- .../content/samples/emoji/index.zh-cn.md | 16 +++++++------- .../content/samples/external/index.zh-cn.md | 8 +++---- 4 files changed, 28 insertions(+), 28 deletions(-) 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/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 +## 流程图
{{< mermaid >}} @@ -34,7 +34,7 @@ end {{< /mermaid >}}
-## Sequence diagram +## 时序图
{{< mermaid >}} @@ -56,7 +56,7 @@ end {{< /mermaid >}}
-## Class diagram +## 类图
{{< mermaid >}} @@ -84,7 +84,7 @@ class Zebra{ {{< /mermaid >}}
-## Entity relationship diagram +## 实体关系图
{{< mermaid >}} diff --git a/exampleSite/content/samples/emoji/index.zh-cn.md b/exampleSite/content/samples/emoji/index.zh-cn.md index 2a27aa62..0e0e6e37 100755 --- a/exampleSite/content/samples/emoji/index.zh-cn.md +++ b/exampleSite/content/samples/emoji/index.zh-cn.md @@ -1,20 +1,20 @@ --- -title: "Emoji :parachute:" +title: "Emoji 表情符号 :parachute:" date: 2019-03-05 -description: "Guide to Emoji usage in Blowfish" +description: "Blowfish 中的表情符号使用指南" summary: "📖🏞️🧗🏽🐉🧙🏽‍♂️🧚🏽👸" -tags: ["emoji", "sample"] +tags: ["emoji", "示例"] type: 'sample' --- -Emoji is supported throughout Blowfish by default. Emoji can be used in titles, menu items and article content. +Blowfish 支持 Emoji 表情符号。Emoji 表情符号可用于标题、菜单项和文章内容。 {{< alert >}} -**Note:** The rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack. +**注意:** Emoji 的显示效果取决于您的浏览器和操作系统。要设置统一的表情符号样式,您可以使用第三方 Emoji 表情符号字体。 {{< /alert >}} -Emoji replacements are automatic throughout Blowfish, so you can use shorthand codes in your content and front matter and they will be converted to their corresponding symbols at build time. +Blowfish 会自动的进行表情符号渲染,因此您可以在内容和 frontmatter 中使用 Emoji 表情代码,它们将在构建时转换为相应的 Emoji。 -**Example:** `see_no_evil` :see_no_evil:, `hear_no_evil` :hear_no_evil:, `speak_no_evil` :speak_no_evil:. +**例如:** `see_no_evil` :see_no_evil:, `hear_no_evil` :hear_no_evil:, `speak_no_evil` :speak_no_evil:. -The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. +[Emoji 清单](http://www.emoji-cheat-sheet.com/) 可以很方便的查找 Emoji 对应的表情代码。 diff --git a/exampleSite/content/samples/external/index.zh-cn.md b/exampleSite/content/samples/external/index.zh-cn.md index b61030ac..8fd49b68 100755 --- a/exampleSite/content/samples/external/index.zh-cn.md +++ b/exampleSite/content/samples/external/index.zh-cn.md @@ -1,8 +1,8 @@ --- -title: "An External Article" +title: "外部文章" date: 2019-01-24 externalUrl: "https://nunocoracao.com/projects/" -summary: "The `externalUrl` front matter parameter can link to any URL." +summary: "`externalUrl` front matter 参数可以链接到任何外部 URL." showReadingTime: true _build: render: "false" @@ -10,6 +10,6 @@ _build: type: 'sample' --- -This page uses the `externalUrl` front matter parameter to link to an article outside of this Hugo website. +此页面使用 `externalUrl` front matter 参数链接到 Hugo 网站之外的文章。 -It's great for things like linking to posts on Medium or to research papers you may have hosted on third party websites. +它非常适合链接到 Medium 上的帖子或在第三方网站上托管的文章。 \ No newline at end of file From 0f48b1a16d4a5ccaf440a2961d9f14d815f5a1dc Mon Sep 17 00:00:00 2001 From: Aphcity Date: Thu, 21 Mar 2024 15:35:36 +0800 Subject: [PATCH 5/6] Translate sample pages - exampleSite\content\samples\rich-content\index.zh-cn.md - exampleSite\content\samples\placeholder-text\index.zh-cn.md - exampleSite\content\samples\multiple-authors\index.zh-cn.md - exampleSite\content\samples\mathematical-notation\index.zh-cn.md - exampleSite\content\samples\markdown\index.zh-cn.md - exampleSite\content\samples\_index.zh-cn.md --- exampleSite/content/samples/_index.zh-cn.md | 2 +- .../content/samples/markdown/index.zh-cn.md | 46 +++++++++---------- .../mathematical-notation/index.zh-cn.md | 24 +++++----- .../samples/multiple-authors/index.zh-cn.md | 10 ++-- .../samples/placeholder-text/index.zh-cn.md | 4 +- .../samples/rich-content/index.zh-cn.md | 20 ++++---- 6 files changed, 53 insertions(+), 53 deletions(-) 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/markdown/index.zh-cn.md b/exampleSite/content/samples/markdown/index.zh-cn.md index af8bd56f..33da6b3c 100755 --- a/exampleSite/content/samples/markdown/index.zh-cn.md +++ b/exampleSite/content/samples/markdown/index.zh-cn.md @@ -1,18 +1,18 @@ --- title: "Markdown" date: 2019-03-11 -description: "Sample article showcasing basic Markdown syntax and formatting for HTML elements." -tags: ["markdown", "css", "html", "sample"] +description: "在 Markdown 文章中添加 HTML 元素的基本语法和格式。" +tags: ["markdown", "css", "html", "示例"] type: 'sample' --- -This article offers a sample of basic Markdown formatting that can be used in Blowfish, also it shows how some basic HTML elements are decorated. +本文提供了可在 Blowfish 中使用的基本 Markdown 格式示例,还展示了如何加入一些基本 HTML 元素。 -## Headings +## 标题 -The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. +以下 HTML 元素 `

`—`

` 表示六个级别的标题。 `

` 是最高的标题级别,而 `

` 是最低的。 # H1 @@ -26,46 +26,46 @@ The following HTML `

`—`

` elements represent six levels of section head ###### H6 -## Paragraph +## 段落 Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. -## Blockquotes +## 块引用 -The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. +块引用表示从其他来源引用的内容,可以用于位于 `footer` 或 `cite` 元素内的引文,并且可以表示一些补充说明(例如注释和缩写)。 -### Blockquote without attribution +### 没有参考链接的块引用 > Tiam, ad mint andaepu dandae nostion secatur sequo quae. > **Note** that you can use _Markdown syntax_ within a blockquote. -### Blockquote with attribution +### 有参考链接的块引用 > Don't communicate by sharing memory, share memory by communicating.
> — Rob Pike[^1] -[^1]: The above quote is excerpted from Rob Pike's [talk `about` nothing](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. +[^1]: 上述引文摘自 Rob Pike 在 2015 年 11 月 18 日 Gopherfest 期间的[谈论“什么都没有”](https://www.youtube.com/watch?v=PAAkCSZUG1c)。 -## Tables +## 表格 -Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. +表格不是核心 Markdown 规范的一部分,但 Hugo 支持渲染。 | Name | Age | | ----- | --- | | Bob | 27 | | Alice | 23 | -### Inline Markdown within tables +### 表格内内联 Markdown | Italics | Bold | Code | | --------- | -------- | ------ | | _italics_ | **bold** | `code` | -## Code Blocks +## 代码块 -### Code block with backticks +### 带反引号的代码块 ```html @@ -80,7 +80,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou ``` -### Code block indented with four spaces +### 缩进四个空格的代码块 @@ -93,7 +93,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou -### Code block with Hugo's internal highlight shortcode +### 带有 Hugo 内部高亮简码的代码块 {{< highlight html "linenos=table,hl_lines=4 7-9" >}} @@ -109,21 +109,21 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou {{< /highlight >}} -## List Types +## 列表 -### Ordered List +### 有序列表 1. First item 2. Second item 3. Third item -### Unordered List +### 无序列表 - List item - Another item - And another item -### Nested list +### 嵌套列表 - Fruit - Apple @@ -133,7 +133,7 @@ Tables aren't part of the core Markdown spec, but Hugo supports supports them ou - Milk - Cheese -## Other Elements — abbr, sub, sup, kbd, mark +## 其他元素 — abbr、sub、sup、kbd、mark GIF is a bitmap image format. diff --git a/exampleSite/content/samples/mathematical-notation/index.zh-cn.md b/exampleSite/content/samples/mathematical-notation/index.zh-cn.md index f0590a0a..5136bad9 100755 --- a/exampleSite/content/samples/mathematical-notation/index.zh-cn.md +++ b/exampleSite/content/samples/mathematical-notation/index.zh-cn.md @@ -1,29 +1,29 @@ --- -title: Mathematical notation +title: 数学表达式 date: 2019-03-08 -description: A brief sample of mathematical notation in Blowfish. -tags: ["sample", "katex", "maths", "shortcodes"] +description: Blowfish 中数学表达式的简短示例。 +tags: ["示例", "katex", "数学", "简码"] type: 'sample' --- -KaTeX can be used to render mathematical notation within articles. +KaTeX 可用于在文章中呈现数学表达式。 {{< katex >}} -Blowfish will only bundle the KaTeX assets into your project if you make use of mathematical notation. In order for this to work, simply include the [`katex` shortcode]({{< ref "docs/shortcodes#katex" >}}) within the article. Example below: +如果您想要使用数学符号,Blowfish 会将 KaTeX 自动加入到您的项目中。只需在文章中包含 [`katex` 短代码]({{< ref "docs/shortcodes#katex" >}}) 即可。参考下面的例子: ```md {{}} ``` -Any KaTeX syntax on that page will then be automatically rendered. Use the online reference of [supported TeX functions](https://katex.org/docs/supported.html) for the available syntax. +该页面上的任何 KaTeX 语法都会自动渲染。使用[支持的 TeX 函数](https://katex.org/docs/supported.html) 的在线参考来获取可用语法。 -## Inline notation +## 内联表示法 -Inline notation can be generated by wrapping the expression in `\\(` and `\\)` delimiters. +可以通过将表达式包装在 `\\(` 和 `\\)` 分隔符中来生成内联表示法。 -**Example:** +**例如:** ```tex % KaTeX inline notation @@ -32,11 +32,11 @@ Inline notation: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\) Inline notation: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\) -## Block notation +## 表达式块 -Alternatively, block notation can be generated using `$$` delimiters. This will output the expression in its own HTML block. +可以使用 `$$` 分隔符生成表达式块。这将在其 HTML 块中输出表达式。 -**Example:** +**例如:** ```tex % KaTeX block notation diff --git a/exampleSite/content/samples/multiple-authors/index.zh-cn.md b/exampleSite/content/samples/multiple-authors/index.zh-cn.md index 0cd486f5..53575e10 100644 --- a/exampleSite/content/samples/multiple-authors/index.zh-cn.md +++ b/exampleSite/content/samples/multiple-authors/index.zh-cn.md @@ -1,10 +1,10 @@ --- -title: "Multiple Authors" +title: "多作者" date: 2022-10-12 draft: false -description: "Sample for a multiple author setup" -tags: ["authors", "sample"] -summary: "A quick example of how multiple authors could be used." +description: "多作者设置示例" +tags: ["作者", "示例"] +summary: "如何使用多个作者的简单示例。" showAuthor: false authors: - "nunocoracao" @@ -12,4 +12,4 @@ authors: type: 'sample' --- -This is an example of how an article with multiple authors will look like. \ No newline at end of file +这是具有多个作者的文章的示例。 \ No newline at end of file diff --git a/exampleSite/content/samples/placeholder-text/index.zh-cn.md b/exampleSite/content/samples/placeholder-text/index.zh-cn.md index 20c6ac1b..4234388f 100755 --- a/exampleSite/content/samples/placeholder-text/index.zh-cn.md +++ b/exampleSite/content/samples/placeholder-text/index.zh-cn.md @@ -1,10 +1,10 @@ --- -title: "Placeholder Text" +title: "文本占位符" date: "2019-03-09" lastmod: "2022-01-24" draft: false description: "Lorem Ipsum Dolor Si Amet" -tags: ["markdown", "text", "sample", "latin"] +tags: ["markdown", "文本", "示例", "拉丁语"] showDateUpdated: true xml: false type: 'sample' diff --git a/exampleSite/content/samples/rich-content/index.zh-cn.md b/exampleSite/content/samples/rich-content/index.zh-cn.md index d46b16d0..f366759f 100755 --- a/exampleSite/content/samples/rich-content/index.zh-cn.md +++ b/exampleSite/content/samples/rich-content/index.zh-cn.md @@ -1,36 +1,36 @@ --- -title: "Rich Content" +title: "简码示例" date: 2019-03-10 -description: "A brief description of Hugo Shortcodes" -summary: "This is an _example_ of a **rich** content summary." -tags: ["shortcodes", "privacy", "sample", "gist", "twitter", "youtube", "vimeo"] +description: "Hugo 简码的简要说明" +summary: "这是**简码**内容的示例。" +tags: ["简码", "隐私", "示例", "gist", "twitter", "youtube", "vimeo"] type: 'sample' --- -Hugo ships with several [built-in shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [privacy config](https://gohugo.io/about/hugo-and-gdpr/) and a set of _simple shortcodes_ that enable static and no-JS versions of various social media embeds. +Hugo 附带了几个用于丰富内容的[内置简码](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes),以及一个[隐私配置](https: //gohugo.io/about/hugo-and-gdpr/) 和一组干练的简码,支持各种社交媒体嵌入的静态窗口。 ## YouTube -Below is an example using the built-in `youtube` shortcode. +下面是一个使用内置 `youtube` 简码的示例。 {{< youtube ZJthWmvUzzc >}} ## Twitter -This example uses the `twitter_simple` shortcode to output a Tweet. It requires two named parameters `user` and `id`. +此示例使用 `twitter_simple` 简码来显示推文。它需要两个参数 `user` 和 `id` 。 {{< twitter_simple user="DesignReviewed" id="1085870671291310081" >}} -Alternatively, the `tweet` shortcode can be used to embed a fully marked up Twitter card. +或者,`tweet` 简码可用于生成嵌入式的 Twitter 卡片。 ## Gist -The `gist` shortcode can be used to embed a GitHub Gist. It requires two unnamed parameters: the username and ID of the Gist. +`gist` 简码可用于嵌入 GitHub Gist。它需要两个参数:Gist 的用户名和 ID。 {{< gist nunocoracao 2779792841f7ffa7c7e62dc4d38626d4 >}} ## Vimeo -The `vimeo_simple` shortcode will embed a Vimeo video. +`vimeo_simple` 简码将生成一个嵌入式的 Vimeo 播放器。 {{< vimeo_simple 48912912 >}} From 998a422ed6978f1ebfc380a1ab8943ef0cbd9c36 Mon Sep 17 00:00:00 2001 From: Aphcity Date: Thu, 21 Mar 2024 17:10:36 +0800 Subject: [PATCH 6/6] Translate Author Bio --- exampleSite/content/authors/nunocoracao/_index.zh-cn.md | 2 +- exampleSite/content/authors/secondauthor/_index.zh-cn.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. +假装这里有一份第二位作者的简介。