diff options
Diffstat (limited to 'src/content/dependencies/generateAlbumInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateAlbumInfoPage.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAlbumInfoPage.js b/src/content/dependencies/generateAlbumInfoPage.js index 1bffe2d0..5af3c1d6 100644 --- a/src/content/dependencies/generateAlbumInfoPage.js +++ b/src/content/dependencies/generateAlbumInfoPage.js @@ -74,6 +74,9 @@ export default { artistCommentarySection: relation('generateCommentarySection', album.commentary), + + creditSourcesSection: + relation('generateCommentarySection', album.creditSources), }), data: (album) => ({ @@ -150,6 +153,15 @@ export default { })) : html.blank()), + + !html.isBlank(relations.creditSourcesSection) && + language.encapsulate(capsule, 'readCreditSources', capsule => + language.$(capsule, { + link: + html.tag('a', + {href: '#credit-sources'}, + language.$(capsule, 'link')), + })), ])), relations.trackList, @@ -177,6 +189,11 @@ export default { ])), relations.artistCommentarySection, + + relations.creditSourcesSection.slots({ + id: 'credit-sources', + title: language.$('misc.creditSources'), + }), ], navLinkStyle: 'hierarchical', |