版权声明:本文为博主原创文章,未经博主允许不得转载;联系邮箱:[email protected] https://blog.csdn.net/stormdony/article/details/82558104
添加看板娘
在博客目录下安装依赖
npm install –save hexo-helper-live2d
在主题下的_config.yml
的配置信息
Hexo的 _config.yml 文件添加配置.
示例:
live2d:
enable: true
scriptFrom: local
pluginRootPath: live2dw/
pluginJsPath: lib/
pluginModelPath: assets/
tagMode: false
debug: false
model:
use: live2d-widget-model-wanko
display:
position: right
width: 150
height: 300
mobile:
show: false
使用其他的模型,需要先安装模型,在修改配置信息中的use
欢迎到我的github page上 预览效果
查看模型:https://github.com/xiazeyu/live2d-widget-models
截图预览:https://huaji8.top/post/live2d-plugin-2.0/
安装模型
npm install 模型的包名
具体可以查看官方文档:https://github.com/EYHN/hexo-helper-live2d/blob/master/README.zh-CN.md
取消看板娘
直接运行下面的命令
npm uninstall hexo-helper-live2d
去掉站点_config.yml
下的配置信息即可