_includes/shortcodes/audio-playlist

A JavaScript Template module for an embedded <audio> playlist

Source:
Parameters:
NameTypeDescription
eleventyConfigObject

11ty’s Config API

Methods

(inner) audioPlaylist(audio) → {String}

Playlist markup

Source:
Parameters:
NameTypeDescription
audioObject

The audio data object

Returns:
Type:
String

HTML template literal

Example
`${this.audioPlaylist(data.audio.playlists.songsOfTravel)}`