Skip to content
This repository was archived by the owner on Jan 27, 2021. It is now read-only.

Commit 48a84c7

Browse files
committed
Fixed config issue
1 parent f22ce35 commit 48a84c7

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ var config = Object.assign( {
3434
className: "live2d",
3535
id: "live2dcanvas",
3636
},
37-
config,
38-
hexo.theme.config.live2d,
39-
hexo.config.live2d
37+
hexo.config.live2d,
38+
hexo.theme.config.live2d
4039
);
4140

4241
hexo.extend.helper.register('live2d', function() {

readme.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,16 @@ Two Methods
4545
4646
#### Method 1
4747
48-
Add configuration in your theme.
48+
Add configuration in hexo's `_config.yml` file.
4949
50-
``` ejs
51-
<%- live2d({
52-
model: "nipsilon"
53-
}) %>
50+
``` yml
51+
live2d:
52+
model: nipsilon
5453
```
5554

5655
#### Method 2
5756

58-
Add configuration in hexo's `_config.yml` file.
57+
Add configuration in hexo theme's `_config.yml` file.
5958

6059
``` yml
6160
live2d:

readme.zh-CN.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,16 @@ swig (next主题):
4747
4848
#### Method 1 第一种
4949
50-
直接在主题中添加参数:
50+
在 hexo 的 `_config.yml` 中添加参数:
5151
52-
``` ejs
53-
<%- live2d({
54-
model: "nipsilon"
55-
}) %>
52+
``` yml
53+
live2d:
54+
model: nipsilon
5655
```
5756

5857
#### Method 2 第二种
5958

60-
hexo`_config.yml` 中添加参数:
59+
hexo主题`_config.yml` 中添加参数:
6160

6261
``` yml
6362
live2d:

0 commit comments

Comments
 (0)