diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-04-04 16:01:33 -0300 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-04-04 16:01:33 -0300 |
commit | 660d6fd951796e920392adc032bba43c250ecd41 (patch) | |
tree | 80b45a229ae81bf66c20ff0a8981c71ffef737b6 /upd8.js | |
parent | c6388cb2765fc9d39e07e3649054a85f09d092ea (diff) |
cover art in info card
Diffstat (limited to 'upd8.js')
-rwxr-xr-x | upd8.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/upd8.js b/upd8.js index d34db5b6..cfddf581 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` <div id="info-card-container"> <div class="info-card"> + <div class="info-card-art-container"> + ${img({ + class: 'info-card-art', + src: '', + square: true + })} + </div> <h1 class="info-card-name"><a></a></h1> <p class="info-card-album">${strings('releaseInfo.from', {album: '<a></a>'})}</p> </div> @@ -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), |