From 2790970d85a5f4c03cea02af2cd2fb2218f15ff1 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 3 Apr 2024 12:08:41 -0300 Subject: content: generateAlbumCommentaryPage: update sidebar slotting --- .../dependencies/generateAlbumCommentaryPage.js | 31 ++++++++++++++-------- 1 file changed, 20 insertions(+), 11 deletions(-) (limited to 'src/content') diff --git a/src/content/dependencies/generateAlbumCommentaryPage.js b/src/content/dependencies/generateAlbumCommentaryPage.js index 5a7142e5..751a0c91 100644 --- a/src/content/dependencies/generateAlbumCommentaryPage.js +++ b/src/content/dependencies/generateAlbumCommentaryPage.js @@ -10,6 +10,7 @@ export default { 'generateContentHeading', 'generateTrackCoverArtwork', 'generatePageLayout', + 'generatePageSidebar', 'linkAlbum', 'linkExternal', 'linkTrack', @@ -23,6 +24,9 @@ export default { relations.layout = relation('generatePageLayout'); + relations.sidebar = + relation('generatePageSidebar'); + relations.albumStyleRules = relation('generateAlbumStyleRules', album, null); @@ -249,17 +253,22 @@ export default { }, ], - leftSidebarStickyMode: 'column', - leftSidebarClass: 'commentary-track-list-sidebar-box', - leftSidebarContent: [ - html.tag('h1', relations.sidebarAlbumLink), - relations.sidebarTrackSections.map(section => - section.slots({ - anchor: true, - open: true, - mode: 'commentary', - })), - ], + leftSidebar: + relations.sidebar.slots({ + attributes: {class: 'commentary-track-list-sidebar-box'}, + + stickyMode: 'column', + + content: [ + html.tag('h1', relations.sidebarAlbumLink), + relations.sidebarTrackSections.map(section => + section.slots({ + anchor: true, + open: true, + mode: 'commentary', + })), + ], + }), }); }, }; -- cgit 1.3.0-6-gf8a5