npm install --save hexo-helper-live2d
npm install live2d-widget-model-shizuku #这是模块
其他模块参考:
https://huaji8.top/post/live2d-plugin-2.0/
![](https://img.haomeiwen.com/i15863171/754e997dbff4df42.png)
在配置目录下输入下面的代码:
live2d:
enable: true
scriptFrom: local
pluginRootPath: live2dw/
pluginJsPath: lib/
pluginModelPath: assets/
tagMode: false
log: false
model:
use: live2d-widget-model-shizuku
display:
position: right
width: 150
height: 300
mobile:
show: false
react:
opacity: 0.7
![](https://img.haomeiwen.com/i15863171/6ef69093e6466c12.png)
部署:
hexo clean
hexo g
hexo d
成功:
![](https://img.haomeiwen.com/i15863171/149e2ab3d7126199.png)
结果展示(显示可能会慢一些):
![](https://img.haomeiwen.com/i15863171/84783cd8e1686eba.png)
网友评论