« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/generateAlbumCommentaryPage.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/generateAlbumCommentaryPage.js')
-rw-r--r--src/content/dependencies/generateAlbumCommentaryPage.js29
1 files changed, 9 insertions, 20 deletions
diff --git a/src/content/dependencies/generateAlbumCommentaryPage.js b/src/content/dependencies/generateAlbumCommentaryPage.js
index d2706918..0d7fb2cb 100644
--- a/src/content/dependencies/generateAlbumCommentaryPage.js
+++ b/src/content/dependencies/generateAlbumCommentaryPage.js
@@ -31,11 +31,8 @@ export default {
     relations.albumStyleTags =
       relation('generateAlbumStyleTags', album, null);
 
-    relations.albumLink =
-      relation('linkAlbum', album);
-
-    relations.albumNavAccent =
-      relation('generateAlbumNavAccent', album, null);
+    relations.albumNavLinks =
+      relation('generateAlbumNavLinks', album);
 
     relations.totals =
       relation('getContentEntryTotals',
@@ -263,21 +260,13 @@ export default {
         ],
 
         navLinkStyle: 'hierarchical',
-        navLinks: [
-          {auto: 'home'},
-          {
-            html:
-              relations.albumLink
-                .slot('attributes', {class: 'current'}),
-
-            accent:
-              relations.albumNavAccent.slots({
-                showTrackNavigation: false,
-                showExtraLinks: true,
-                currentExtra: 'commentary',
-              }),
-          },
-        ],
+        navLinks:
+          html.resolve(
+            relations.albumNavLinks.slots({
+              showTrackNavigation: false,
+              showExtraLinks: true,
+              currentExtra: 'commentary',
+            })),
 
         secondaryNav:
           relations.secondaryNav.slots({