« get me outta code hell

content: generateArtTagGalleryPage: illustrator info - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-06 01:56:10 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-01-03 21:08:58 -0400
commit5349b6fafc2166b3de69a166e255fd94cb7dcd3d (patch)
tree1e94b392b5db166b4a7d9b5b24cdc51badc204b8 /src/content
parent4ebe7fc5665b2428ab85ac1da888a2661a6fe94d (diff)
content: generateArtTagGalleryPage: illustrator info
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateArtTagGalleryPage.js13
1 files changed, 13 insertions, 0 deletions
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),
+                      }))),
             }),
         ],