Skip to content

Commit 4fbd6e1

Browse files
committed
更新文档
1 parent 1f1eb12 commit 4fbd6e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/en/guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ You can check which languages are supported in the theme [languages](https://git
233233
You can also use a similar way to override the configuration to customize the language:
234234

235235
1. Go to or create `source/_data` directory of the blog directory, then create the `languages` folder;
236-
2. Create a file `en.yml` in `_languages` , copy the content of [en.yml](https://github.com/fluid-dev/hexo-theme-fluid/blob/master/languages/en.yml);
237-
3. You can set any config with the new `en.yml`, it can be used when `hexo g`.
236+
2. Create a file named `en.yml` in `source/_data/languages` , copy the content of [en.yml](https://github.com/fluid-dev/hexo-theme-fluid/blob/master/languages/en.yml) in `fluid/languages` to you just created;
237+
3. You can reset any config in `en.yml` you just created, it can be used when `hexo g`.
238238

239239
Of course, you can also choose other language yaml, just keep the filename and config value the same.
240240

docs/guide/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ language: zh-CN
292292
你也可以使用类似于覆盖配置的方式去自定义语言,可按如下操作:
293293

294294
1. 进入博客目录的 `source/_data` 目录(如不存在则创建),创建 `languages` 文件夹;
295-
2. 在 `_languages` 文件夹下创建 `xxx.yml` 文件(`xxx` 替换为对应语言的代码,例如 `zh-CN`)
296-
3. 主题 [languages](https://github.com/fluid-dev/hexo-theme-fluid/tree/master/languages) 目录下对应语言的配置内容复制到 `xxx.yml` 中;
295+
2. 在 `source/_data/languages` 文件夹下创建 `xxx.yml` 文件(`xxx` 替换为对应语言的代码,例如 `zh-CN`)
296+
3. 将 [fluid/languages](https://github.com/fluid-dev/hexo-theme-fluid/tree/master/languages) 目录下对应语言的配置内容复制到 `xxx.yml` 中;
297297
4. 以后配置都在 `xxx.yml` 中修改,配置会在 `hexo g` 时自动覆盖。
298298

299299
当然你可以按这个方法创建一份其他语言的配置。

0 commit comments

Comments
 (0)