« get me outta code hell

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:
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,
             })),