From 869515eafa0225a3e748b2165c324567a0d29132 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 13 Nov 2020 14:27:19 -0400 Subject: show more details on album indexes --- upd8.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'upd8.js') diff --git a/upd8.js b/upd8.js index a05840a..2404a22 100644 --- a/upd8.js +++ b/upd8.js @@ -1085,6 +1085,7 @@ function getGridHTML({ srcFn, hrefFn, altFn, + details = false, lazy = true }) { return entries.map(({ large, item }, i) => fixWS` @@ -1096,6 +1097,9 @@ function getGridHTML({ square: true })} ${item.name} + ${details && fixWS` + (${s(item.tracks.length, 'track')}, ${getDurationString(getTotalDuration(item.tracks))}) + `} `).join('\n'); } @@ -1256,6 +1260,7 @@ function writeMiscellaneousPages() {
${getAlbumGridHTML({ + details: true, entries: (albumData .filter(album => album.isFanon) .reverse() @@ -1277,6 +1282,7 @@ function writeMiscellaneousPages() {
${getAlbumGridHTML({ + details: true, entries: (albumData .filter(album => album.isOfficial) .reverse() -- cgit 1.3.0-6-gf8a5