hexo添加live2d

2020-04-06

hexo添加live2d

之前的博客也是借用了其他大佬整合的live2d,这次是找到了hexo的版本,实际使用效果不错(nice)

这里是项目地址hexo-helper-live2d

调用方法

在根目录下下载包

1
npm install --save hexo-helper-live2d

然后在_config.yml加入配置文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
live2d:
enable: true
scriptFrom: local
pluginRootPath: live2dw/
pluginJsPath: lib/
pluginModelPath: assets/
tagMode: false
log: false
model:
use: live2d-widget-model-wanko
display:
position: right
width: 150
height: 300
mobile:
show: true
react:
opacity: 0.7

这样就可以很简单地配置一个live2d看板娘

立个flag,这个月我一定搞清楚这个live2d的实现过程= =,再补做一个天依的