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/page/group.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/page') diff --git a/src/page/group.js b/src/page/group.js index 429097f8..26230b45 100644 --- a/src/page/group.js +++ b/src/page/group.js @@ -129,7 +129,9 @@ export function write(group, {wikiData}) { page: ({ generateInfoGalleryLinks, generateNavigationLinks, + getAlbumCover, getAlbumGridHTML, + getCarouselHTML, getLinkThemeString, getThemeString, html, @@ -149,6 +151,12 @@ export function write(group, {wikiData}) { group: group.name, })), + getCarouselHTML({ + items: group.featuredAlbums.slice(0, 12 + 1), + srcFn: getAlbumCover, + linkFn: link.album, + }), + html.tag('p', {class: 'quick-info'}, language.$('groupGalleryPage.infoLine', { -- cgit 1.3.0-6-gf8a5