Skip to content

Commit 8a49352

Browse files
committed
🎨 zh_CN 修改为 zh-CN
1 parent caa5e9f commit 8a49352

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@
2929

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

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

37-
// 关闭默认的代码高亮
37+
# 关闭默认的代码高亮
3838
highlight:
3939
enable: false
4040
```
4141
4242
#### 3. 启用主题
4343
4444
依然是根目录中的 `_config.yml`,如下修改:
45-
```yml
45+
```yaml
4646
# Extensions
4747
theme: Material-T
4848
```
Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
search:
2-
title: 搜索
3-
keyword: 关键词
4-
status:
5-
success: v
6-
error: x
7-
8-
postTotal: 共计 %d 篇文章
9-
10-
paginator:
11-
pre: 上一页
12-
next: 下一页
13-
14-
post:
15-
toc: 目录
16-
17-
archive:
18-
title: 归档
19-
subtitle: 归档
20-
21-
tag:
22-
title: 标签
23-
subtitle: 标签
24-
25-
category:
26-
title: 分类
27-
subtitle: 分类
28-
29-
about:
30-
title: 关于
31-
subtitle: 关于
32-
33-
page404:
34-
title: 页面走丢啦~
1+
search:
2+
title: 搜索
3+
keyword: 关键词
4+
status:
5+
success: v
6+
error: x
7+
8+
postTotal: 共计 %d 篇文章
9+
10+
paginator:
11+
pre: 上一页
12+
next: 下一页
13+
14+
post:
15+
toc: 目录
16+
17+
archive:
18+
title: 归档
19+
subtitle: 归档
20+
21+
tag:
22+
title: 标签
23+
subtitle: 标签
24+
25+
category:
26+
title: 分类
27+
subtitle: 分类
28+
29+
about:
30+
title: 关于
31+
subtitle: 关于
32+
33+
page404:
34+
title: 页面走丢啦~
3535
subtitle: 页面走丢啦~

layout/layout.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="zh-CN">
2+
<html lang="<%= config.language %>">
33

44
<%
55
var subtitle = page.subtitle || page.title

0 commit comments

Comments
 (0)