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

Commit

Permalink
Fixed config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazeyu committed Oct 30, 2017
1 parent f22ce35 commit 48a84c7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ var config = Object.assign( {
className: "live2d",
id: "live2dcanvas",
},
config,
hexo.theme.config.live2d,
hexo.config.live2d
hexo.config.live2d,
hexo.theme.config.live2d
);

hexo.extend.helper.register('live2d', function() {
Expand Down
11 changes: 5 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,16 @@ Two Methods
#### Method 1
Add configuration in your theme.
Add configuration in hexo's `_config.yml` file.
``` ejs
<%- live2d({
model: "nipsilon"
}) %>
``` yml
live2d:
model: nipsilon
```

#### Method 2

Add configuration in hexo's `_config.yml` file.
Add configuration in hexo theme's `_config.yml` file.

``` yml
live2d:
Expand Down
11 changes: 5 additions & 6 deletions readme.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,16 @@ swig (next主题):
#### Method 1 第一种
直接在主题中添加参数:
在 hexo 的 `_config.yml` 中添加参数:
``` ejs
<%- live2d({
model: "nipsilon"
}) %>
``` yml
live2d:
model: nipsilon
```

#### Method 2 第二种

hexo`_config.yml` 中添加参数:
hexo主题`_config.yml` 中添加参数:

``` yml
live2d:
Expand Down

0 comments on commit 48a84c7

Please sign in to comment.