« 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.js8
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', {