diff options
Diffstat (limited to 'src/content/dependencies/generateGroupInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateGroupInfoPage.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/content/dependencies/generateGroupInfoPage.js b/src/content/dependencies/generateGroupInfoPage.js index 87f35656..31f43208 100644 --- a/src/content/dependencies/generateGroupInfoPage.js +++ b/src/content/dependencies/generateGroupInfoPage.js @@ -5,6 +5,7 @@ export default { 'generateGroupSecondaryNav', 'generateGroupSidebar', 'generatePageLayout', + 'linkArtist', 'linkExternal', 'transformContent', ], @@ -33,6 +34,10 @@ export default { ? relation('generateGroupSidebar', group) : null), + closeArtistLinks: + group.closelyLinkedArtists + .map(artist => relation('linkArtist', artist)), + visitLinks: group.urls .map(url => relation('linkExternal', url)), @@ -63,6 +68,21 @@ export default { html.tag('p', {[html.onlyIfContent]: true}, + language.encapsulate(pageCapsule, 'closelyLinkedArtists', capsule => + (relations.closeArtistLinks.length === 0 + ? html.blank() + : relations.closeArtistLinks.length === 1 + ? language.$(capsule, 'one', { + artist: relations.closeArtistLinks, + }) + : language.$(capsule, 'multiple', { + artists: + language.formatUnitList(relations.closeArtistLinks), + })))), + + html.tag('p', + {[html.onlyIfContent]: true}, + language.$('releaseInfo.visitOn', { [language.onlyIfOptions]: ['links'], |