Skip to content

Commit

Permalink
🎨 zh_CN 修改为 zh-CN
Browse files Browse the repository at this point in the history
  • Loading branch information
zkqiang committed Sep 2, 2019
1 parent caa5e9f commit 8a49352
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 40 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@

按如下内容修改 Hexo 根目录中的 `_config.yml`

```yml
// 设置语言
// more:https://github.com/0x2E/Material-T/tree/master/languages
```yaml
# 设置语言,需要对应下面目录内的文件名,可以自定义文件内容
# https://github.com/0x2E/Material-T/tree/master/languages
language: zh-CN

// 关闭默认的代码高亮
# 关闭默认的代码高亮
highlight:
enable: false
```
#### 3. 启用主题
依然是根目录中的 `_config.yml`,如下修改:
```yml
```yaml
# Extensions
theme: Material-T
```
Expand Down
68 changes: 34 additions & 34 deletions languages/zh_CN.yml → languages/zh-CN.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
search:
title: 搜索
keyword: 关键词
status:
success: v
error: x

postTotal: 共计 %d 篇文章

paginator:
pre: 上一页
next: 下一页

post:
toc: 目录

archive:
title: 归档
subtitle: 归档

tag:
title: 标签
subtitle: 标签

category:
title: 分类
subtitle: 分类

about:
title: 关于
subtitle: 关于

page404:
title: 页面走丢啦~
search:
title: 搜索
keyword: 关键词
status:
success: v
error: x

postTotal: 共计 %d 篇文章

paginator:
pre: 上一页
next: 下一页

post:
toc: 目录

archive:
title: 归档
subtitle: 归档

tag:
title: 标签
subtitle: 标签

category:
title: 分类
subtitle: 分类

about:
title: 关于
subtitle: 关于

page404:
title: 页面走丢啦~
subtitle: 页面走丢啦~
2 changes: 1 addition & 1 deletion layout/layout.ejs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="zh-CN">
<html lang="<%= config.language %>">

<%
var subtitle = page.subtitle || page.title
Expand Down

0 comments on commit 8a49352

Please sign in to comment.