« get me outta code hell

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:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/listRandomPageLinks.js23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/content/dependencies/listRandomPageLinks.js b/src/content/dependencies/listRandomPageLinks.js
index 599a82d3..87e5f5aa 100644
--- a/src/content/dependencies/listRandomPageLinks.js
+++ b/src/content/dependencies/listRandomPageLinks.js
@@ -61,17 +61,18 @@ export default {
 
           html.tag('dd',
             html.tag('ul', [
-              html.tag('li', [
-                html.tag('a',
-                  {href: '#', 'data-random': 'artist'},
-                  language.$('listingPage.other.randomPages.misc.randomArtist')),
-
-                '(' +
-                html.tag('a',
-                  {href: '#', 'data-random': 'artist-more-than-one-contrib'},
-                  language.$('listingPage.other.randomPages.misc.atLeastTwoContributions')) +
-                ')',
-              ]),
+              html.tag('li',
+                language.$('listingPage.other.randomPages.misc.randomArtist', {
+                  mainLink:
+                    html.tag('a',
+                      {href: '#', 'data-random': 'artist'},
+                      language.$('listingPage.other.randomPages.misc.randomArtist.mainLink')),
+
+                  atLeastTwoContributions:
+                    html.tag('a',
+                      {href: '#', 'data-random': 'artist-more-than-one-contrib'},
+                      language.$('listingPage.other.randomPages.misc.randomArtist.atLeastTwoContributions')),
+                })),
 
               html.tag('li',
                 html.tag('a',