From d1b9d881a6cf06e62fcf0cbc14d830f08fa6380f Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 3 Jun 2023 09:16:51 -0300 Subject: content: generateArtistNavLinks: include "Artist:" text --- src/content/dependencies/generateArtistNavLinks.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/content/dependencies') 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, + }), + }, ]; }, }); -- cgit 1.3.0-6-gf8a5