From 40b72accab9f0bdb3a6602c3f5a9bb4bf8a0bd0d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 9 Jun 2024 16:58:12 -0300 Subject: content: generateTrackInfoPage: flashesThatFeature sticky heading --- src/content/dependencies/generateTrackInfoPage.js | 4 ++++ src/strings-default.yaml | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'src') 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 -- cgit 1.3.0-6-gf8a5