hexo添加动态人物背景

有时看博客时,发现别人的博客有动漫人物背景,挺有意思的,遂自己也加一个。

hexo-helper-live2d

1
npm install --save hexo-helper-live2d

官网

模型

选择模型,我选了一只白猫,喵。

1
npm install live2d-widget-model-tororo

模型选择

配置

然后在_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-tororo
display:
position: right
width: 150
height: 300
hOffset: 15
vOffset: 20
mobile:
show: true

更多详细配置

效果直接看博客啦。为了博客能加载快一点,把效果关了。