« get me outta code hell

content, data, client, css: style selector first pass - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateGroupGalleryPageAlbumGrid.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-07-17 15:12:07 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-07-17 15:12:07 -0300
commitaf4ca039b42da9968e82087560eb398f3b3bbd17 (patch)
treeef1cfa2d805064c756faca3402a67a5c8f2257d1 /src/content/dependencies/generateGroupGalleryPageAlbumGrid.js
parent82a6098d64b17c7c21dd5c5db64b78da9a7e9bb3 (diff)
content, data, client, css: style selector first pass
Diffstat (limited to 'src/content/dependencies/generateGroupGalleryPageAlbumGrid.js')
-rw-r--r--src/content/dependencies/generateGroupGalleryPageAlbumGrid.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/content/dependencies/generateGroupGalleryPageAlbumGrid.js b/src/content/dependencies/generateGroupGalleryPageAlbumGrid.js
index 96cadb03..4f8aaf3b 100644
--- a/src/content/dependencies/generateGroupGalleryPageAlbumGrid.js
+++ b/src/content/dependencies/generateGroupGalleryPageAlbumGrid.js
@@ -33,6 +33,9 @@ export default {
     tracks:
       albums.map(album => album.tracks.length),
 
+    styles:
+      albums.map(album => album.style),
+
     notFromThisGroup:
       albums.map(album => !album.groups.includes(group)),
   }),
@@ -56,6 +59,9 @@ export default {
                   }),
               })),
 
+        itemAttributes:
+          data.styles.map(style => ({'data-style': style})),
+
         info:
           stitchArrays({
             tracks: data.tracks,