Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumumm/hexo-qidaink-live2d
云与海的NexT主题站点live2d模型加载插件
https://github.com/sumumm/hexo-qidaink-live2d
live2d next
Last synced: 4 days ago
JSON representation
云与海的NexT主题站点live2d模型加载插件
- Host: GitHub
- URL: https://github.com/sumumm/hexo-qidaink-live2d
- Owner: sumumm
- Created: 2021-05-08T23:22:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T12:55:57.000Z (over 3 years ago)
- Last Synced: 2024-04-27T06:54:35.171Z (7 months ago)
- Topics: live2d, next
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hexo-qidaink-live2d
- Size: 1.66 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 云与海的`live2d`插件
- 欢迎访问我的博客:云与海 查看效果。
# 1.安装插件
```shell
cd hexo-site
npm install hexo-qidaink-live2d
```# 2.配置插件
在站点根目录中的站点配置文件中添加以下内容。
```yaml
myliverd:
enable: true # 是否开启live2d
local: false # true为本地引用,false为cdn链接引用,此时下边的cdnPath才生效
cdnPath: "https://xxx/live2d-widget/autoload.js" # CDN链接,可改为自己的CDN链接
```注意:若使用本地引用,则此插件中的函数依赖`@next-theme/utils`文件,所以在安装上述插件后`hexo g`生成静态文件的时候可能报如下错误。
```shell
err: Error: Cannot find module '@next-theme/utils'
```这表示缺少`@next-theme/utils`模块,使用以下命令安装即可。
```shell
cd hexo-site
npm install @next-theme/utils
```# 3.参考项目
参考以下大佬项目
项目作者
项目链接
stevenjoezhang
https://github.com/stevenjoezhang/live2d-widget
akilar店长
https://github.com/Akilarlxh/live2d_api
fghrsh(原作者)
https://github.com/fghrsh/live2d_api