资料汇总
GitHub:点击直达
配置说明:点击直达
模型仓库:点击直达
模型预览:点击直达
安装配置
首先,安装npm包:
1
| npm install --save hexo-helper-live2d
|
然后在hexo的配置文件_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 debug: false model: use: live2d-widget-model-wanko display: position: right width: 150 height: 300 mobile: show: true react: opacity: 0.7
|
然后下载模型,模型名称可以到这里参考,一些模型的预览可以在这里: 点击直达
1
| npm install live2d-widget-model-shizuku
|
效果预览
配置解释
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
live2d: enable: true scriptFrom: local pluginRootPath: live2dw/ pluginJsPath: lib/ pluginModelPath: assets/ tagMode: false debug: false model: use: live2d-widget-model-hibiki display: position: right width: 145 height: 315 mobile: show: true scale: 0.5 react: opacityDefault: 0.7 opacityOnHover: 0.8
|