« get me outta code hell

content: listRandomPageLinks: use chunk title accents - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-09 16:35:10 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-09 16:35:10 -0400
commit082f693274a62c9f826fd84def417f243c21d612 (patch)
tree18d763e717ed0876346343521b87032ed0459ee0 /src/content
parentf187e32c858e46af9ee2717a20ae4095f0fef325 (diff)
content: listRandomPageLinks: use chunk title accents
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/listRandomPageLinks.js16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/content/dependencies/listRandomPageLinks.js b/src/content/dependencies/listRandomPageLinks.js
index 5e74b4ac..089289f7 100644
--- a/src/content/dependencies/listRandomPageLinks.js
+++ b/src/content/dependencies/listRandomPageLinks.js
@@ -118,20 +118,28 @@ export default {
           (relations.groupLinks
             ? relations.groupLinks.map(groupLink => ({
                 stringsKey: 'fromGroup',
-
                 group: groupLink,
+              }))
+            : [{stringsKey: 'fromAlbum'}]),
+      ],
 
+      chunkTitleAccents: [
+        null,
+
+        ...
+          (relations.groupLinks
+            ? relations.groupLinks.map(() => ({
                 randomAlbum:
                   html.tag('a',
                     {href: '#', 'data-random': 'album-in-group-dl'},
-                    language.$('listingPage.other.randomPages.chunk.title.fromGroup.randomAlbum')),
+                    language.$('listingPage.other.randomPages.chunk.title.fromGroup.accent.randomAlbum')),
 
                 randomTrack:
                   html.tag('a',
                     {href: '#', 'data-random': 'track-in-group-dl'},
-                    language.$('listingPage.other.randomPages.chunk.title.fromGroup.randomTrack')),
+                    language.$('listingPage.other.randomPages.chunk.title.fromGroup.accent.randomTrack')),
               }))
-            : [{stringsKey: 'fromAlbum'}]),
+            : [null]),
       ],
 
       chunkRows: [