美文网首页
hexo 添加和取消live2d看板动画

hexo 添加和取消live2d看板动画

作者: DonLex | 来源:发表于2018-09-22 11:17 被阅读0次

添加看板娘

在博客目录下安装依赖

npm install --save hexo-helper-live2d

在主题下的_config.yml的配置信息
Hexo的 _config.yml 文件添加配置.

示例:

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: 150
    height: 300
  mobile:
    show: false

使用其他的模型,需要先安装模型,在修改配置信息中的use

查看模型:https://github.com/xiazeyu/live2d-widget-models

截图预览:https://huaji8.top/post/live2d-plugin-2.0/

安装模型

npm install 模型的包名

具体可以查看官方文档:https://github.com/EYHN/hexo-helper-live2d/blob/master/README.zh-CN.md

取消看板娘

直接运行下面的命令

npm uninstall hexo-helper-live2d

去掉站点_config.yml下的配置信息即可

最后

欢迎到我的个人站点:https://www.donlex.cn 查看效果

相关文章

网友评论

      本文标题:hexo 添加和取消live2d看板动画

      本文链接:https://www.haomeiwen.com/subject/yrntoftx.html