From 0fbce8a83c33a17821716d662c86a95848c7e58a Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 28 Dec 2022 18:25:51 -0400 Subject: properly support 4-18 item carousels --- src/data/things/group.js | 4 ++++ src/data/yaml.js | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/data') diff --git a/src/data/things/group.js b/src/data/things/group.js index 26fe9a55..111d6715 100644 --- a/src/data/things/group.js +++ b/src/data/things/group.js @@ -17,6 +17,8 @@ export class Group extends Thing { urls: Thing.common.urls(), + featuredAlbumsByRef: Thing.common.referenceList(Album), + // Update only albumData: Thing.common.wikiData(Album), @@ -24,6 +26,8 @@ export class Group extends Thing { // Expose only + featuredAlbums: Thing.common.dynamicThingsFromReferenceList('featuredAlbumsByRef', 'albumData', find.album), + descriptionShort: { flags: {expose: true}, diff --git a/src/data/yaml.js b/src/data/yaml.js index f967cee3..a5a0e798 100644 --- a/src/data/yaml.js +++ b/src/data/yaml.js @@ -356,6 +356,8 @@ export const processGroupDocument = makeProcessDocument(T.Group, { directory: 'Directory', description: 'Description', urls: 'URLs', + + featuredAlbumsByRef: 'Featured Albums', }, }); -- cgit 1.3.0-6-gf8a5