This repository was archived by the owner on Jan 27, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +12
-15
lines changed
Expand file tree Collapse file tree 3 files changed +12
-15
lines changed Original file line number Diff line number Diff 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
4241hexo . extend . helper . register ( 'live2d' , function ( ) {
Original file line number Diff line number Diff 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
6160live2d :
Original file line number Diff line number Diff 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
6362live2d :
You can’t perform that action at this time.
0 commit comments