添加live2d看板娘
添加live2d看板娘
安装live2d
1
| npm install --save hexo-helper-live2d
|
打开live2d
进入网站配置文件_confing.yml内,在最下面添加下面内容
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| 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
|
安装你喜欢的动画模型
下面是课桌姑娘的安装代码
1
| npm install live2d-widget-model-shizuku
|
接着hexo cl && hexo s 本地右下角就能看到你的看板娘了
最后想要更换其他样式的人物则需要在下载模型后改动 use:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| live2d: enable: true scriptFrom: local pluginRootPath: live2dw/ pluginJsPath: lib/ pluginModelPath: assets/ tagMode: false log: false model: use: 这里这里改动 display: position: right width: 150 height: 300 mobile: show: false
|