hexo添加音乐播放器

hexo添加音乐播放器

Rxw

安装

npm install --save hexo-tag-aplayer

添加页面

hexo new page music "音乐分享"

修改hexo的_config.yml主要配置

aplayer:
  meting: true

设置

{% meting "12842672057" "netease" "playlist" "theme:#FF4081" "mode:circulation" "mutex:true" "listmaxheight:340px" "preload:auto" %}

在新建页面中添加,其中“12842672057”为歌单id。例如:https://music.163.com/#/playlist?id=12842672057

参考

其实可以用多种格式,可以看原文档:

https://zsyyblog.com/5a3310b8.html

https://github.com/MoePlayer/hexo-tag-aplayer?tab=readme-ov-file#meingjs-support-new-in-30

  • Title: hexo添加音乐播放器
  • Author: Rxw
  • Created at : 2024-11-27 23:53:10
  • Updated at : 2024-11-28 14:14:42
  • Link: https://rxw2023-github-io.pages.dev/2024/11/27/hexo添加音乐播放器/
  • License: This work is licensed under CC BY-NC-SA 4.0.
Comments