Use the Github space to build a Hexo technology blog-set cute anime villains in the Hexo NexT theme (9)

1. Install the module

Select the cmdcommand window of the root directory of hexo blog or git bash enter the following code to install the plugin

npm install --save hexo-helper-live2d

Various models show

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

Choose the corresponding model and use  npm install the package name of the model to install it

npm install live2d-widget-model-koharu

2. Configuration

Open the file in the root directory of the personal Hexo blog file  _config.yml and add the code at the end

#二次元
live2d:
  enable: true
  scriptFrom: local
  pluginRootPath: live2dw/
  pluginJsPath: lib/
  pluginModelPath: assets/
  tagMode: false
  debug: false
  model:
    use: live2d-widget-model-wanko #这个是你要修改的
  display:
    position: right #在屏幕上的显示位置
    width: 85 #显示宽度
    height: 170 #显示高度
  mobile:
    show: false #手机端是否显示

3. Note

When you change a cartoon character, I did not find the time to show up at a local or wide obviously set high, do not panic, you can hexo cleanlook, and then hexo ggenerate static files, hexo sstart to see local services, so should the line.

4. Uninstall

When you do n’t want it, you can enable it to false or uninstall it

The uninstall command is:


npm uninstall hexo-helper-live2d   

Display of results:

Published 120 original articles · praised 201 · 230,000 views +

Guess you like

Origin blog.csdn.net/wugenqiang/article/details/88375517