From 5349b6fafc2166b3de69a166e255fd94cb7dcd3d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 6 Oct 2023 01:56:10 -0300 Subject: content: generateArtTagGalleryPage: illustrator info --- src/content/dependencies/generateArtTagGalleryPage.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/content') diff --git a/src/content/dependencies/generateArtTagGalleryPage.js b/src/content/dependencies/generateArtTagGalleryPage.js index 5557d1e2..62b88bcf 100644 --- a/src/content/dependencies/generateArtTagGalleryPage.js +++ b/src/content/dependencies/generateArtTagGalleryPage.js @@ -74,6 +74,11 @@ export default { ? ['media.trackCover', thing.album.directory, thing.directory, thing.coverArtFileExtension] : ['media.albumCover', thing.directory, thing.coverArtFileExtension])); + data.coverArtists = + query.things.map(thing => + thing.coverArtistContribs + .map(({who: artist}) => artist.name)); + return data; }, @@ -108,6 +113,14 @@ export default { path: data.paths, }).map(({image, path}) => image.slot('path', path)), + + info: + data.coverArtists.map(names => + (names === null + ? null + : language.$('misc.albumGrid.details.coverArtists', { + artists: language.formatUnitList(names), + }))), }), ], -- cgit 1.3.0-6-gf8a5