From 660d6fd951796e920392adc032bba43c250ecd41 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 4 Apr 2021 16:01:33 -0300 Subject: cover art in info card --- upd8.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'upd8.js') diff --git a/upd8.js b/upd8.js index d34db5b..cfddf58 100755 --- a/upd8.js +++ b/upd8.js @@ -2037,6 +2037,7 @@ function img({ thumb: thumbKey = '', reveal = '', id = '', + class: className = '', width = '', height = '', link = false, @@ -2051,6 +2052,7 @@ function img({ const imgAttributes = attributes({ id: link ? '' : id, + class: className, alt, width, height @@ -2396,6 +2398,13 @@ writePage.html = (pageFn, {paths, strings, to}) => { const infoCardHTML = fixWS`
+
+ ${img({ + class: 'info-card-art', + src: '', + square: true + })} +

${strings('releaseInfo.from', {album: ''})}

@@ -3091,6 +3100,11 @@ function writeTrackPage(track) { date: track.date, duration: track.duration, color: track.color, + cover: { + path: getTrackCover(track, { + to: urls.from('media.root').to + }) + }, links: { artists: serializeContribs(track.artists), contributors: serializeContribs(track.contributors), -- cgit 1.3.0-6-gf8a5