The spotify shortcode embeds a responsive music player for Spotify music.
Usages
Example spotify input:
1
2
3
| {{< spotify type=artist id=74ASZWbe4lXaubB36ztrGX >}}
Or
{{< spotify artist 74ASZWbe4lXaubB36ztrGX >}}
|
The rendered output looks like this:
Options

The spotify shortcode has the following named parameters:
type [required] (first positional parameter)
The type of the Spotify music, which can be artist, album, track, or playlist.
id [required] (second positional parameter)
The id of the Spotify music, which can be found in the Spotify URL.
width [optional] (third positional parameter)
The width of the Spotify music player.
height [optional] (fourth positional parameter)
The height of the Spotify music player.