diff options
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 |
commit | 81e7947f1c4a8a795fa4be7aa797683692391d41 (patch) | |
tree | 31c2d41683d5049b45d7a393c60736fc0bad75b9 /src | |
parent | 0f33d55f3baadc2ff44dbf09d7d46a4970c49e38 (diff) |
'Listed in Albums' gallery flag
Diffstat (limited to 'src')
-rw-r--r-- | src/data/things/album.js | 1 | ||||
-rw-r--r-- | src/data/yaml.js | 1 | ||||
-rw-r--r-- | src/page/group.js | 14 |
3 files changed, 10 insertions, 6 deletions
diff --git a/src/data/things/album.js b/src/data/things/album.js index 281da871..ade34e3d 100644 --- a/src/data/things/album.js +++ b/src/data/things/album.js @@ -82,6 +82,7 @@ export class Album extends Thing { hasTrackNumbers: Thing.common.flag(true), isMajorRelease: Thing.common.flag(false), isListedOnHomepage: Thing.common.flag(true), + isListedInGalleries: Thing.common.flag(true), commentary: Thing.common.commentary(), additionalFiles: Thing.common.additionalFiles(), diff --git a/src/data/yaml.js b/src/data/yaml.js index a5a0e798..83368832 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -217,6 +217,7 @@ export const processAlbumDocument = makeProcessDocument(T.Album, { hasTrackNumbers: 'Has Track Numbers', isMajorRelease: 'Major Release', isListedOnHomepage: 'Listed on Homepage', + isListedInGalleries: 'Listed in Galleries', groupsByRef: 'Groups', artTagsByRef: 'Art Tags', 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, })), |