<% if (playlist.coverPath) { %> <% } else { %>
🎧
<% } %>

<%= playlist.title %>

<% if (playlist.description) { %>

<%= playlist.description %>

<% } %>

<%= tracks.length %> track<%= tracks.length === 1 ? '' : 's' %>

<% const npMeta = JSON.stringify({ title: playlist.title, description: playlist.description || null, cover: playlist.coverPath ? '/media/' + playlist.coverPath : null, trackCount: tracks.length, creator: creator ? { displayName: creator.displayName, avatarPath: creator.avatarPath || null, slug: creator.slug || null } : null }); %>
<% if (user && playlist.createdBy === user.id) { %> ✎ Edit <% } %> ← Back
<% const shareUrl = appBaseUrl + '/playlists/' + playlist.slug; %> <% const shareText = siteName + ' Playlist: ' + playlist.title; %>
<% if (creator) { %> <% if (creator.slug) { %> <% } else { %> <% } %> <% } %>
<% if (tracks.length > 0) { %> <%- include('../partials/song_list', { songs: tracks }) %> <% } %>