« get me outta code hell

content: generateArtistNavLinks: include "Artist:" text - 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>2023-06-03 09:16:51 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-03 09:16:51 -0300
commitd1b9d881a6cf06e62fcf0cbc14d830f08fa6380f (patch)
tree74a5cddb3e227201e1cc6085977d530ad15a74da /src/content/dependencies
parent2d51d9723b59c15db3a46649b02afa56bc7e4f81 (diff)
content: generateArtistNavLinks: include "Artist:" text
Diffstat (limited to 'src/content/dependencies')
-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,
+              }),
+          },
         ];
       },
     });