From 29d8349f87fc7d812e7efecb1aa49ada2e44742e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 9 Jun 2024 16:53:20 -0300 Subject: content: generateAlbumTrackList: no duration in sticky heading --- src/content/dependencies/generateAlbumTrackList.js | 6 ++++++ src/strings-default.yaml | 1 + 2 files changed, 7 insertions(+) (limited to 'src') 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}:" -- cgit 1.3.0-6-gf8a5