diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-04-03 12:08:41 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-04-03 16:55:12 -0300 |
commit | 2790970d85a5f4c03cea02af2cd2fb2218f15ff1 (patch) | |
tree | 0eefe57b0c6c279041802b4f800c8a38b24178d3 /src/content/dependencies | |
parent | 5e5b705a922166fad311be2a143a2337c797e405 (diff) |
content: generateAlbumCommentaryPage: update sidebar slotting
Diffstat (limited to 'src/content/dependencies')
-rw-r--r-- | src/content/dependencies/generateAlbumCommentaryPage.js | 31 |
1 files changed, 20 insertions, 11 deletions
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', + })), + ], + }), }); }, }; |