diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-06-23 16:43:44 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-06-24 15:03:11 -0300 |
commit | 248d731bc8108bae8538de7f9abd9337b97684bf (patch) | |
tree | 19ad61288f5c8e7b11a84e62767e1d18db99e111 /src | |
parent | 3f82268bd6fd7afc2d032e55774a83a0c7507ad5 (diff) |
content: generateTrackInfoPage: jump to credit sources line
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/generateTrackInfoPage.js | 9 | ||||
-rw-r--r-- | src/strings-default.yaml | 4 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js index 2a7d5094..9e4a4059 100644 --- a/src/content/dependencies/generateTrackInfoPage.js +++ b/src/content/dependencies/generateTrackInfoPage.js @@ -197,6 +197,15 @@ export default { {href: '#artist-commentary'}, language.$(capsule, 'link')), })), + + !html.isBlank(relations.creditSourcesSection) && + language.encapsulate(capsule, 'readCreditSources', capsule => + language.$(capsule, { + link: + html.tag('a', + {href: '#credit-sources'}, + language.$(capsule, 'link')), + })), ])), html.tags([ diff --git a/src/strings-default.yaml b/src/strings-default.yaml index af29ed78..045f0f60 100644 --- a/src/strings-default.yaml +++ b/src/strings-default.yaml @@ -344,6 +344,10 @@ releaseInfo: _: "Read {LINK}." link: "artist commentary" + readCreditSources: + _: "Read {LINK}." + link: "crediting sources" + additionalFiles: heading: "View or download additional files:" |