« get me outta code hell

content: generateTrackInfoPage: flashesThatFeature sticky heading - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-09 16:58:12 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-09 17:53:29 -0300
commit40b72accab9f0bdb3a6602c3f5a9bb4bf8a0bd0d (patch)
treeed4ac89987ae1a22d6da58b06dd714abf3b4af76
parentec301ffc7db8d03e8442bf30fe1f8847ba27a6f7 (diff)
content: generateTrackInfoPage: flashesThatFeature sticky heading
-rw-r--r--src/content/dependencies/generateTrackInfoPage.js4
-rw-r--r--src/strings-default.yaml5
2 files changed, 9 insertions, 0 deletions
diff --git a/src/content/dependencies/generateTrackInfoPage.js b/src/content/dependencies/generateTrackInfoPage.js
index f7d86c16..8e97b744 100644
--- a/src/content/dependencies/generateTrackInfoPage.js
+++ b/src/content/dependencies/generateTrackInfoPage.js
@@ -445,10 +445,14 @@ export default {
             sec.flashesThatFeature.heading
               .slots({
                 attributes: {id: 'featured-in'},
+
                 title:
                   language.$('releaseInfo.flashesThatFeature', {
                     track: html.tag('i', data.name),
                   }),
+
+                stickyTitle:
+                  language.$('releaseInfo.flashesThatFeature.sticky'),
               }),
 
             html.tag('ul', sec.flashesThatFeature.entries.map(({flashLink, trackLink}) =>
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 27a504b0..1d8c3d84 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -286,10 +286,15 @@ releaseInfo:
 
   flashesThatFeature:
     _: "Flashes & games that feature {TRACK}:"
+    sticky: "Flashes & games that feature this track:"
+
     item:
       _: "{FLASH}"
       asDifferentRelease: "{FLASH} (as {TRACK})"
 
+  # Note that there's no sticky variant here,
+  # such as "Tracks that this flash features",
+  # because not all flashes are *called* flashes!
   tracksFeatured: "Tracks that {FLASH} features:"
 
   # Actions