diff options
Diffstat (limited to 'src/content/dependencies/generateArtistInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateArtistInfoPage.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/content/dependencies/generateArtistInfoPage.js b/src/content/dependencies/generateArtistInfoPage.js index f2fdc5b6..52f3e221 100644 --- a/src/content/dependencies/generateArtistInfoPage.js +++ b/src/content/dependencies/generateArtistInfoPage.js @@ -13,6 +13,7 @@ export default { 'generatePageLayout', 'linkArtistGallery', 'linkExternal', + 'linkGroup', 'transformContent', ], @@ -68,6 +69,10 @@ export default { contextNotes: relation('transformContent', artist.contextNotes), + closeGroupLinks: + artist.closelyLinkedGroups + .map(group => relation('linkGroup', group)), + visitLinks: artist.urls .map(url => relation('linkExternal', url)), @@ -149,6 +154,21 @@ export default { html.tag('p', {[html.onlyIfContent]: true}, + language.encapsulate(pageCapsule, 'closelyLinkedGroups', capsule => + (relations.closeGroupLinks.length === 0 + ? html.blank() + : relations.closeGroupLinks.length === 1 + ? language.$(capsule, 'one', { + group: relations.closeGroupLinks, + }) + : language.$(capsule, 'multiple', { + groups: + language.formatUnitList(relations.closeGroupLinks), + })))), + + html.tag('p', + {[html.onlyIfContent]: true}, + language.$('releaseInfo.visitOn', { [language.onlyIfOptions]: ['links'], |