博客加上萌萌的宠物
欢迎访问博客:http://songluming.com
在终端切换到你的博客的路径里,然后输入如下代码:
npm install -save hexo-helper-live2d
然后打开选择下面一个萌宠或萌妹子
live2d-widget-model-chitose
live2d-widget-model-epsilon2_1
live2d-widget-model-gf
live2d-widget-model-haru/01 (use npm install --save live2d-widget-model-haru)
live2d-widget-model-haru/02 (use npm install --save 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-wanko
然后在在 hexo 的 _config.yml中添加参数:
live2d:
enable: true
scriptFrom: local
model:
use: live2d-widget-model-miku
display:
position: right
width: 140
height: 260
mobile:
show: true
然后hexo clean ,hexo g ,hexo d 就ok了