0%

安装插件

npm i hexo-helper-live2d -S

设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# _config.yml
# Live2D
## https://github.com/EYHN/hexo-helper-live2d
live2d:
enable: true
# enable: false
scriptFrom: local # Default
# scriptFrom: jsdelivr # jsdelivr CDN
# scriptFrom: unpkg # unpkg CDN
# scriptFrom: https://cdn.jsdelivr.net/npm/[email protected]/lib/L2Dwidget.min.js # Your custom url
model:
#use: live2d-widget-model-shizuku # npm-module package name
# use: wanko # folder name in (hexo base dir)/live2d_models/
# use: ./wives/wanko # folder path relative to hexo base dir
use: https://cdn.jsdelivr.net/npm/[email protected]/assets/shizuku.model.json # Your custom url
阅读全文 »

打开资源文件夹

1
2
#_config.yml
post_asset_folder: true

用法

1
2
3
{% asset_path slug %}
{% asset_img slug [title] %}
{% asset_link slug [title] %}
阅读全文 »

安装插件

1
npm i hexo-tag-aplayer -S

用法1

{% aplayer title author url [picture_url, narrow, autoplay, width:xxx, lrc:xxx] %}
阅读全文 »