hexo 添加和取消live2d看板动画

添加看板娘

在博客目录下安装依赖

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 查看效果

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容