添加看板娘
为站点加入可爱的看板娘。
使用
将以下 .css 与 .js 文件链接插入到你的网页中即可调加入可爱的 Live2D 看板娘了!
<link rel="stylesheet" href="https://registry.npmmirror.com/weblive2d/latest/files/waifu.css"> |
进入 NexT 主题的配置文件 _config.next.yml,释放 head 的注释以启动自定义文件配置项
# Define custom file paths. |
新建文件 siteroot/source/_data/head.njk
进入 siteroot/source/_data/head.njk 文件内,将以下代码粘贴进去
<link rel="stylesheet" href="https://registry.npmmirror.com/weblive2d/latest/files/waifu.css"> |
执行 Hexo 二连即可查看效果!
hexo cl; hexo s |
进入 Butterfly 主题的配置文件 _config.butterfly.yml,搜索 Insert the code to head 然后参照以下配置更改自己的配置项即可
# Inject |
执行 Hexo 二连即可查看效果!
hexo cl; hexo s |
源码
本文章所用到的 CDN 服务其源码来源于此处..
GitHub:nova1751/live2d-api
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 Yolo!


