« get me outta code hell

content: generateTrackInfoPage: "this one" in sticky heading - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-09 16:56:56 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-09 17:53:29 -0300
commitec301ffc7db8d03e8442bf30fe1f8847ba27a6f7 (patch)
treedc5af22643fad957b4d55c3c0b8aefce9617934d /src
parent29d8349f87fc7d812e7efecb1aa49ada2e44742e (diff)
content: generateTrackInfoPage: "this one" in sticky heading
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js8
-rw-r--r--src/strings-default.yaml10
2 files changed, 16 insertions, 2 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index 298ea32d..f7d86c16 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -385,10 +385,14 @@ export default {
             sec.references.heading
               .slots({
                 attributes: {id: 'references'},
+
                 title:
                   language.$('releaseInfo.tracksReferenced', {
                     track: html.tag('i', data.name),
                   }),
+
+                stickyTitle:
+                  language.$('releaseInfo.tracksReferenced.sticky'),
               }),
 
             sec.references.list,
@@ -398,10 +402,14 @@ export default {
             sec.samples.heading
               .slots({
                 attributes: {id: 'samples'},
+
                 title:
                   language.$('releaseInfo.tracksSampled', {
                     track: html.tag('i', data.name),
                   }),
+
+                stickyTitle:
+                  language.$('releaseInfo.tracksSampled.sticky'),
               }),
 
             sec.samples.list,
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 34cbccf7..27a504b0 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -273,9 +273,15 @@ releaseInfo:
       _: "{TRACK} ({ALBUM})"
       withYear: "({YEAR}) {TRACK} ({ALBUM})"
 
-  tracksReferenced: "Tracks that {TRACK} references:"
+  tracksReferenced:
+    _: "Tracks that {TRACK} references:"
+    sticky: "Tracks that this one references:"
+
+  tracksSampled:
+    _: "Tracks that {TRACK} samples:"
+    sticky: "Tracks that this one samples:"
+
   tracksThatReference: "Tracks that reference {TRACK}:"
-  tracksSampled: "Tracks that {TRACK} samples:"
   tracksThatSample: "Tracks that sample {TRACK}:"
 
   flashesThatFeature: