File tree Expand file tree Collapse file tree 3 files changed +40
-40
lines changed
Expand file tree Collapse file tree 3 files changed +40
-40
lines changed Original file line number Diff line number Diff line change 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
3535language : zh-CN
3636
37- // 关闭默认的代码高亮
37+ # 关闭默认的代码高亮
3838highlight :
3939 enable : false
4040` ` `
4141
4242#### 3. 启用主题
4343
4444依然是根目录中的 ` _config.yml`,如下修改:
45- ` ` ` yml
45+ ` ` ` yaml
4646# Extensions
4747theme: Material-T
4848` ` `
Original file line number Diff line number Diff line change 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 : 页面走丢啦~
Original file line number Diff line number Diff line change 11<!DOCTYPE html>
2- <html lang =" zh-CN " >
2+ <html lang =" <%= config.language %> " >
33
44<%
55var subtitle = page .subtitle || page .title
You can’t perform that action at this time.
0 commit comments