diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-12-28 18:25:51 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-12-28 18:25:51 -0400 |
commit | 0fbce8a83c33a17821716d662c86a95848c7e58a (patch) | |
tree | 1b8ec19521e8390cf5e6f70893b1d4c37decef93 /src/page | |
parent | 4431905279d30f2f987cea1e40805ffdd7d61b5b (diff) |
properly support 4-18 item carousels
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/group.js | 8 |
1 files changed, 8 insertions, 0 deletions
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', { |