diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-10-29 09:27:23 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-10-29 09:27:23 -0300 |
commit | c59545f5faafc826ff24ff779c20318ef14ae123 (patch) | |
tree | feeef4bb5b14e63448f7e39d64480aba23d59c00 /src/content/dependencies/generateListRandomPageLinksGroupSection.js | |
parent | bfa1953e79a562ee675940b7acc52b5b29d22d8f (diff) |
content, client: generalize "random pages" listing to wiki dividing groups
Diffstat (limited to 'src/content/dependencies/generateListRandomPageLinksGroupSection.js')
-rw-r--r-- | src/content/dependencies/generateListRandomPageLinksGroupSection.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/content/dependencies/generateListRandomPageLinksGroupSection.js b/src/content/dependencies/generateListRandomPageLinksGroupSection.js index 2a684b19..74872724 100644 --- a/src/content/dependencies/generateListRandomPageLinksGroupSection.js +++ b/src/content/dependencies/generateListRandomPageLinksGroupSection.js @@ -23,10 +23,7 @@ export default { .map(() => relation('generateColorStyleVariables')), }), - data: (query, sprawl, group) => ({ - groupDirectory: - group.directory, - + data: (query) => ({ albumColors: query.albums .map(album => album.color), @@ -48,12 +45,12 @@ export default { randomAlbum: html.tag('a', - {href: '#', 'data-random': 'album-in-' + data.groupDirectory}, + {href: '#', 'data-random': 'album-in-group-dl'}, language.$('listingPage.other.randomPages.group.randomAlbum')), randomTrack: html.tag('a', - {href: '#', 'data-random': 'track-in-' + data.groupDirectory}, + {href: '#', 'data-random': 'track-in-group-dl'}, language.$('listingPage.other.randomPages.group.randomTrack')), })), |