Successfully changed live 2d widget

Successfully changed live 2d widget

I successfully changed live 2d widget to a cat (well the ideal for me is some mecha-stylled widget wwww). The next step is to add two of them, one on the right side and another on the left.

First thing to do is to install the 2d widget helper:

BASH
npm install --save hexo-helper-live2d

Next, install the model that I wanted: hijiki the cat:

BASH
usage: npm install {packagename}
npm install live2d-widget-model-hijiki

Then add the following code to the main "_config.yml" file (not the “_config.yml” of the theme):

_config.yml
live2d:
enable: true
scriptFrom: local
pluginRootPath: live2dw/
pluginJsPath: lib/
pluginModelPath: assets/
tagMode: false
log: false
model:
use: live2d-widget-model-hijiki
display:
position: right
width: 150
height: 300
mobile:
show: true
react:
opacity: 1.0

Then everthing works normally.

Author

Zihao Xu

Posted on

2021-04-15

Updated on

2021-04-25

Licensed under

You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

Comments

You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.