« get me outta code hell

content: generateAlbumTrackList: no duration 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:53:20 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-09 17:53:29 -0300
commit29d8349f87fc7d812e7efecb1aa49ada2e44742e (patch)
tree06943b67e1bff9cb407b8c8a796442f22a25e4eb /src
parentbd561e1d74b373818fcf2e2f8b53aa568c6be454 (diff)
content: generateAlbumTrackList: no duration in sticky heading
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateAlbumTrackList.js6
-rw-r--r--src/strings-default.yaml1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAlbumTrackList.js b/src/content/dependencies/generateAlbumTrackList.js
index ee06b9e6..dd3e85e3 100644
--- a/src/content/dependencies/generateAlbumTrackList.js
+++ b/src/content/dependencies/generateAlbumTrackList.js
@@ -149,6 +149,7 @@ export default {
             }) => [
               heading.slots({
                 tag: 'dt',
+
                 title:
                   (duration === 0
                     ? language.$('trackList.section', {
@@ -161,6 +162,11 @@ export default {
                             approximate: durationApproximate,
                           }),
                       })),
+
+                stickyTitle:
+                  language.$('trackList.section.sticky', {
+                    section: name,
+                  }),
               }),
 
               html.tag('dd',
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 06bd3e06..34cbccf7 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -364,6 +364,7 @@ trackList:
   section:
     _: "{SECTION}:"
     withDuration: "{SECTION}: ({DURATION})"
+    sticky: "{SECTION}:"
 
   group:
     _: "From {GROUP}:"