• 安装依赖

    pm install –save hexo-helper-live2d

注:卸载依赖:npm uninstall hexo-helper-live2d

依赖可以在 主目录的 package.json中查看

  • 选择看板主题(黑猫看板主题)

    npm install live2d-widget-model-hijiki

    注:完成后,主目录的node_moduels文件夹下有相应的文件夹

  • 主目录修改配置文件

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    #live2d看板动画
    live2d:
    enable: true
    scriptFrom: local
    pluginRootPath: live2dw/
    pluginJsPath: lib/
    pluginModelPath: assets/
    tagMode: false
    log: false
    model:
    use: live2d-widget-model-hijiki
    display:
    superSample: 2
    width: 150
    height: 300
    position: right
    hOffset: 100
    vOffset: -100
    mobile:
    show: true
    scale: 0.5
    react:
    opacityDefault: 0.7
    opacityOnHover: 0.2

出处:https://www.jianshu.com/p/3a6342e16e57