« 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
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/generateArtistNavLinks.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/content/dependencies/generateArtistNavLinks.js b/src/content/dependencies/generateArtistNavLinks.js
index c10c02cd..f283b30d 100644
--- a/src/content/dependencies/generateArtistNavLinks.js
+++ b/src/content/dependencies/generateArtistNavLinks.js
@@ -17,6 +17,9 @@ export default {
   relations(relation, sprawl, artist) {
     const relations = {};
 
+    relations.artistMainLink =
+      relation('linkArtist', artist);
+
     relations.artistInfoLink =
       relation('linkArtist', artist);
 
@@ -81,12 +84,20 @@ export default {
 
         return [
           {auto: 'home'},
+
           data.enableListings &&
             {
               path: ['localized.listingIndex'],
               title: language.$('listingIndex.title'),
             },
-          {auto: 'current', accent},
+
+          {
+            accent,
+            html:
+              language.$('artistPage.nav.artist', {
+                artist: relations.artistMainLink,
+              }),
+          },
         ];
       },
     });