From 248d731bc8108bae8538de7f9abd9337b97684bf Mon Sep 17 00:00:00 2001
From: "(quasar) nebula" <qznebula@protonmail.com>
Date: Sun, 23 Jun 2024 16:43:44 -0300
Subject: content: generateTrackInfoPage: jump to credit sources line

---
 src/content/dependencies/generateTrackInfoPage.js | 9 +++++++++
 src/strings-default.yaml                          | 4 ++++
 2 files changed, 13 insertions(+)

(limited to 'src')

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:"
 
-- 
cgit 1.3.0-6-gf8a5