« get me outta code hell

content: generateTrackInfoPage: show album secondary nav - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-04-24 10:28:04 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-04-24 10:28:36 -0300
commitb2766fcd2410f599576887b108f98d752894e9ee (patch)
treea750cf74ac5cb777b2b2897c78c783a58befff1d /src/content/dependencies
parent4304b01884bf997518a55c6de1ae15456d4c1b46 (diff)
content: generateTrackInfoPage: show album secondary nav
Diffstat (limited to 'src/content/dependencies')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index 1b5fbbf8..a3ff07bd 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -10,6 +10,7 @@ export default {
     'generateAdditionalFilesShortcut',
     'generateAlbumAdditionalFilesList',
     'generateAlbumNavAccent',
+    'generateAlbumSecondaryNav',
     'generateAlbumSidebar',
     'generateAlbumStyleRules',
     'generateChronologyLinks',
@@ -112,6 +113,9 @@ export default {
     relations.chronologyLinks =
       relation('generateChronologyLinks');
 
+    relations.secondaryNav =
+      relation('generateAlbumSecondaryNav', track.album);
+
     relations.sidebar =
       relation('generateAlbumSidebar', track.album, track);
 
@@ -595,6 +599,10 @@ export default {
             ],
           }),
 
+        secondaryNav:
+          relations.secondaryNav
+            .slot('mode', 'track'),
+
         leftSidebar: relations.sidebar,
 
         socialEmbed: relations.socialEmbed,