Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Chinese language for this theme #349

Merged
merged 3 commits into from
Dec 10, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,8 @@ weight = 20
name = "<i class='fas fa-fw fa-bullhorn'></i> Crédits"
url = "/credits"
weight = 30

[Languages.zh]
title = "Hugo 主题的 Learn 文档"
LinuxSuRen marked this conversation as resolved.
Show resolved Hide resolved
weight = 3
languageName = "简体中文"
12 changes: 12 additions & 0 deletions exampleSite/content/basics/_index.zh.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: 基础
weight: 5
pre: "<b>1. </b>"
chapter: true
---

### 章节 1

# 基础

了解该 Hugo 主题的特点以及背后的核心概念。
4 changes: 2 additions & 2 deletions i18n/zh-cn.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ other = "哎哟。 看起来这个页面不存在 ¯\\_(ツ)_/¯。"
other = "转到主页"

[Edit-this-page]
other = "Edit this page"
other = "编辑当前页"

[Shortcuts-Title]
other = "更多"

[Expand-title]
other = "Expand me..."
other = "展开"