« get me outta code hell

'Listed in Albums' gallery flag - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-12-28 20:15:05 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-12-28 20:15:05 -0400
commit81e7947f1c4a8a795fa4be7aa797683692391d41 (patch)
tree31c2d41683d5049b45d7a393c60736fc0bad75b9 /src/page
parent0f33d55f3baadc2ff44dbf09d7d46a4970c49e38 (diff)
'Listed in Albums' gallery flag
Diffstat (limited to 'src/page')
-rw-r--r--src/page/group.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/page/group.js b/src/page/group.js
index 26230b45..6bfd1532 100644
--- a/src/page/group.js
+++ b/src/page/group.js
@@ -190,12 +190,14 @@ export function write(group, {wikiData}) {
             {class: 'grid-listing'},
             getAlbumGridHTML({
               entries: sortChronologically(
-                group.albums.map(album => ({
-                  item: album,
-                  directory: album.directory,
-                  name: album.name,
-                  date: album.date,
-                }))
+                group.albums
+                  .filter(album => album.isListedInGalleries)
+                  .map(album => ({
+                    item: album,
+                    directory: album.directory,
+                    name: album.name,
+                    date: album.date,
+                  }))
               ).reverse(),
               details: true,
             })),