上个贴子教大家如何部署博客,有坛友说没有音乐播放器。
有两种方法可以插入,加到你要添加播放器的页面文件里面,也可以单独创建个页面专门放音乐播放器(可以置顶首页)
1.使用网易云音乐的生成外链(缺点有些因为版权保护无法生成) 2.hexo-tag-aplayer会配置后真香,https://github.com/MoePlayer/hexo-tag-aplayer参考项目地址。
3.开始安装
4.执行npm install --save hexo-tag-aplayer
5.使用 MetingJS
6.修改非主题文件的 _config.yml
_config.yml
7.添加 # aplayer
aplayer:
meting: true
注意排序和其他配置文件对齐
之后打开页面文件插入
{% meting "60198" "netease" "playlist" "autoplay" "mutex:false" "listmaxheight:340px" "preload:none" "theme:#ad7a86"%}
60198代表音乐目录id或者音乐id
netease网易云音乐
音乐平台可以修改:tencent kugouxiami baidu
kugou
baidu
tencent为qq音乐。
学习了
Featured Collection
Popular Ranking
Popular Events
上个贴子教大家如何部署博客,有坛友说没有音乐播放器。
有两种方法可以插入,加到你要添加播放器的页面文件里面,也可以单独创建个页面专门放音乐播放器(可以置顶首页)
1.使用网易云音乐的生成外链(缺点有些因为版权保护无法生成)

2.hexo-tag-aplayer会配置后真香,https://github.com/MoePlayer/hexo-tag-aplayer参考项目地址。
3.开始安装
4.执行npm install --save hexo-tag-aplayer
5.使用 MetingJS
6.修改非主题文件的
_config.yml7.添加 # aplayer
aplayer:
meting: true
注意排序和其他配置文件对齐
之后打开页面文件插入
{% meting "60198" "netease" "playlist" "autoplay" "mutex:false" "listmaxheight:340px" "preload:none" "theme:#ad7a86"%}
60198代表音乐目录id或者音乐id
netease网易云音乐
音乐平台可以修改:tencent
kugouxiamibaidutencent为qq音乐。