« get me outta code hell

content: generateAlbumCommentaryPage: album entry 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:49:39 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-09 17:53:28 -0300
commit25840b9adb7d547f2545b9555402f44b9c8b9f13 (patch)
treed762e42bb09b1a61f8a98e2e728a99bdc20a6118
parent7e4c8e0415948fb62bf2ff319fd5cdfedee0dfb7 (diff)
content: generateAlbumCommentaryPage: album entry sticky heading
-rw-r--r--src/content/dependencies/generateAlbumCommentaryPage.js5
-rw-r--r--src/strings-default.yaml1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/content/dependencies/generateAlbumCommentaryPage.js b/src/content/dependencies/generateAlbumCommentaryPage.js
index ccde11f8..05dbdcf3 100644
--- a/src/content/dependencies/generateAlbumCommentaryPage.js
+++ b/src/content/dependencies/generateAlbumCommentaryPage.js
@@ -166,6 +166,11 @@ export default {
                   album: relations.albumCommentaryLink,
                 }),
 
+              stickyTitle:
+                language.$('albumCommentaryPage.entry.title.albumCommentary.sticky', {
+                  album: data.name,
+                }),
+
               accent:
                 language.$('albumCommentaryPage.entry.title.albumCommentary.accent', {
                   [language.onlyIfOptions]: ['listeningLinks'],
diff --git a/src/strings-default.yaml b/src/strings-default.yaml
index 3fc1d2e9..7e43c684 100644
--- a/src/strings-default.yaml
+++ b/src/strings-default.yaml
@@ -907,6 +907,7 @@ albumCommentaryPage:
     title:
       albumCommentary:
         _: "{ALBUM}"
+        sticky: "{ALBUM} (album commentary)"
         accent: "Listen on: {LISTENING_LINKS}"
 
       trackCommentary: