NEXT主题添加live2d

首先附上live2dgithub源码

  1. 首先在我的hexo文件夹下,输入终端命令
    npm install -save hexo-helper-live2d
  2. 然后在根目录下的_config.yml中添加如下代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#live2d配置
live2d:
enable: true
scriptFrom: local
pluginRootPath: live2dw/
pluginJsPath: lib/
pluginModelPath: assets/
#live2d模型选择
model:
use: live2d-widget-model-koharu
display:
position: left
width: 110
height: 220
#手机不显示
mobile:
show: false

然后终端输入hexo clean && hexo g && hexo d就成功部署到网上了
live2d

赏个🍗吧
0%