diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-06-03 09:17:33 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-06-03 09:17:33 -0300 |
commit | d68134384ada33975ffcf1085b79b6e1e8bfdd74 (patch) | |
tree | ba3bc04c1e815d40367a07251516547480819c30 /src/content | |
parent | d1b9d881a6cf06e62fcf0cbc14d830f08fa6380f (diff) |
content: remove dead reference code
Diffstat (limited to 'src/content')
-rw-r--r-- | src/content/dependencies/generateArtistInfoPage.js | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index d2fc14cb..3a047307 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -740,13 +740,6 @@ export function write(artist, {wikiData}) { <commentary> ], }, - - nav: generateNavForArtist(artist, false, hasGallery, { - generateInfoGalleryLinks, - link, - language, - wikiData, - }), }; }, }; @@ -793,57 +786,10 @@ export function write(artist, {wikiData}) { })), ], }, - - nav: generateNavForArtist(artist, true, hasGallery, { - generateInfoGalleryLinks, - link, - language, - wikiData, - }), }), }; return [data, infoPage, galleryPage].filter(Boolean); } -// Utility functions - -function generateNavForArtist(artist, isGallery, hasGallery, { - generateInfoGalleryLinks, - language, - link, - wikiData, -}) { - const {wikiInfo} = wikiData; - - const infoGalleryLinks = - hasGallery && - generateInfoGalleryLinks(artist, isGallery, { - link, - language, - linkKeyGallery: 'artistGallery', - linkKeyInfo: 'artist', - }); - - return { - linkContainerClasses: ['nav-links-hierarchy'], - links: [ - {toHome: true}, - wikiInfo.enableListings && { - path: ['localized.listingIndex'], - title: language.$('listingIndex.title'), - }, - { - html: language.$('artistPage.nav.artist', { - artist: link.artist(artist, {class: 'current'}), - }), - }, - hasGallery && { - divider: false, - html: `(${infoGalleryLinks})`, - }, - ], - }; -} - */ |