From f616491457f5937e1174b5c141aff99e1607cca3 Mon Sep 17 00:00:00 2001 From: Zhao Xiaojie Date: Wed, 4 Dec 2019 11:17:39 +0800 Subject: [PATCH 1/3] Add Chinese language for this theme --- exampleSite/config.toml | 5 +++++ exampleSite/content/basics/_index.zh.md | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 exampleSite/content/basics/_index.zh.md diff --git a/exampleSite/config.toml b/exampleSite/config.toml index c75f508c00..989033d307 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -73,3 +73,8 @@ weight = 20 name = " Crédits" url = "/credits" weight = 30 + +[Languages.zh] +title = "Hugo 主题的 Learn 文档" +weight = 3 +languageName = "简体中文" diff --git a/exampleSite/content/basics/_index.zh.md b/exampleSite/content/basics/_index.zh.md new file mode 100755 index 0000000000..6c5d5dacce --- /dev/null +++ b/exampleSite/content/basics/_index.zh.md @@ -0,0 +1,12 @@ +--- +title: 基础 +weight: 5 +pre: "1. " +chapter: true +--- + +### 章节 1 + +# 基础 + +了解该 Hugo 主题的特点以及背后的核心概念。 From 695460da0ecbee93a8080c3401e9c039ac74161c Mon Sep 17 00:00:00 2001 From: Zhao Xiaojie Date: Wed, 4 Dec 2019 11:26:16 +0800 Subject: [PATCH 2/3] Add Chinese i18n items for this theme --- i18n/zh-cn.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i18n/zh-cn.toml b/i18n/zh-cn.toml index 46ec152581..e887d3e634 100644 --- a/i18n/zh-cn.toml +++ b/i18n/zh-cn.toml @@ -17,10 +17,10 @@ other = "哎哟。 看起来这个页面不存在 ¯\\_(ツ)_/¯。" other = "转到主页" [Edit-this-page] -other = "Edit this page" +other = "编辑当前页" [Shortcuts-Title] other = "更多" [Expand-title] -other = "Expand me..." +other = "展开" From be4f62237c732af5a2c6fe830cf0cb40bfe8d9f6 Mon Sep 17 00:00:00 2001 From: Zhao Xiaojie Date: Fri, 6 Dec 2019 15:48:50 +0800 Subject: [PATCH 3/3] Add shortcut for Chinese language --- exampleSite/config.toml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 989033d307..9fa84e128f 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -78,3 +78,25 @@ weight = 30 title = "Hugo 主题的 Learn 文档" weight = 3 languageName = "简体中文" + +[[Languages.zh.menu.shortcuts]] +name = " GitHub 仓库" +identifier = "ds" +url = "https://github.com/matcornic/hugo-theme-learn" +weight = 10 + +[[Languages.zh.menu.shortcuts]] +name = " 展示区" +url = "/showcase" +weight = 11 + +[[Languages.zh.menu.shortcuts]] +name = " Hugo 文档" +identifier = "hugodoc" +url = "https://gohugo.io/" +weight = 20 + +[[Languages.zh.menu.shortcuts]] +name = " 鸣谢" +url = "/credits" +weight = 30