安装插件
在hexo根目录执行
1
npm install --save hexo-helper-live2d
选择动画模型
- live2d-widget-model-chitose
- live2d-widget-model-epsilon2_1
- live2d-widget-model-gf
- live2d-widget-model-haru
- live2d-widget-model-haruto
- live2d-widget-model-hibiki
- live2d-widget-model-hijiki
- live2d-widget-model-izumi
- live2d-widget-model-koharu
- live2d-widget-model-miku
- live2d-widget-model-ni-j
- live2d-widget-model-nico
- live2d-widget-model-nietzsche
- live2d-widget-model-nipsilon
- live2d-widget-model-nito
- live2d-widget-model-shizuku
- live2d-widget-model-tororo
- live2d-widget-model-tsumiki
- live2d-widget-model-unitychan
- live2d-widget-model-wanko
- live2d-widget-model-z16
本次选择安装live2d-widget-model-haruto
1
npm install live2d-widget-model-haruto
拷贝资源
在hexo根目录live2d_models
1
mkdir -p live2d_models
cp模型文件
1
cp -r node_modules/live2d-widget-model-haruto/ live2d_models/
编辑主配置
编辑_config.yml
1 | live2d: |
重新部署
1 | hexo clean && hexo g && hexo d |
我部署到GitHub上的域名正常,服务器上的没生效,重启进程后生效。