Shortcode to embed NetEase cloud music player into Markdown content, which support playlist, album and single song.
1{{< netease-cloud-music >}}
id
Position | Name | Type | Required | Default | Since |
---|---|---|---|---|---|
#0 | id | number | ✓ | - | - |
The ID of playlist, album or song.
type
Position | Name | Type | Required | Default | Since |
---|---|---|---|---|---|
#1 | type | string | - | playlist | - |
Type.
Available options: playlist
, album
, song
.
auto
Position | Name | Type | Required | Default | Since |
---|---|---|---|---|---|
#2 | auto | boolean | - | false | - |
Auto play if true
.
title
Position | Name | Type | Required | Default | Since |
---|---|---|---|---|---|
#3 | title | string | - | - | - |
The title of frame.
height
Position | Name | Type | Required | Default | Since |
---|---|---|---|---|---|
- | height | number | - | - | - |
The height of player, default to 66
for song, 310
for others.
width
Position | Name | Type | Required | Default | Since |
---|---|---|---|---|---|
- | width | number | - | 100% | - |
The width of player.
1{{< netease-cloud-music 1978593877 song true "Forget (Slowed Down) - Storm Lake" >}}
1{{< netease-cloud-music id=1367381077 type=song height=80 width=500 title="Exil - Hiboky" >}}
1{{< netease-cloud-music 8271208484 >}}
1{{< netease-cloud-music 92935930 album >}}