music



音乐2021



1.直接插入到某一篇文章

1.先到网易云音乐中中搜出你想要的音乐,然后点击生成外链播放器
2. 然后把这个代码粘贴到你的文章的.md \text{.md}.md文件中,就可以显示了
3. JavaScript标签


2.使用Hexo-tag-Aplayer \text{Hexo-tag-Aplayer}Hexo-tag-Aplayer插件

  1. npm install –save hexo-tag-aplayer
  2. 在文章的markdown文档里添加

3.可以单独的做一个歌单页面

  1. 最新版的 hexo-tag-aplayer \text{hexo-tag-aplayer}hexo-tag-aplayer 已经支持了MetingJS \text{MetingJS}MetingJS的使用,可以直接解析网络平台的歌曲,首先要在站点配置文件中开启 meting \text{meting}meting 模式,添加以下代码在配置文件的最后:
  2. aplayer:
    meting: true
    
  3. 复制歌单的链接,然后复制歌单的id \text{id}id,例如 https://music.163.com/playlist?id=523845661&userid=46562117 ,这个歌单的id就是523845661,公司名可以是tencent、netease或是其他公司,下面给出一个例子,打开 /Hexo/source/playlist/index.md文件,输入:



Dplayer

例:视频



Aplayer音乐



Author: Qi Zhao
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint polocy. If reproduced, please indicate source Qi Zhao !