音乐播放

ヾ(≧▽≦*)o

music by @fortunato


实现记录

  • 技术

    GitHub - MoePlayer/hexo-tag-aplayer: Embed aplayer in Hexo posts/pages

  • 步骤:

    1. 安装插件

      1
      npm install --save hexo-tag-aplayer
    2. 在_config.yml中設置

      1
      2
      aplayer:
      meting: true

      注意:true之前空格

    3. post的markdown中添加

      示例:

      1
      2
      3
      4
      5
      <!-- Simple example (id, server, type)  -->
      {% meting "60198" "netease" "playlist" %}

      <!-- Advanced example -->
      {% meting "60198" "netease" "playlist" "autoplay" "mutex:false" "listmaxheight:340px" "preload:none" "theme:#ad7a86"%}

​ 注:netease是网易云

Option Default Description
id required song id / playlist id / album id / search keyword
server required Music platform: netease, tencent, kugou, xiami, baidu
type required song, playlist, album, search, artist