« get me outta code hell

content: sprawl divideTrackListsByGroups - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-05-26 10:09:16 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-05-26 10:09:16 -0300
commit6efb1212dd643dc98e71e272a1a66f042884edb9 (patch)
treeadc250ac6fc8941a48ddd1c1f1e7d641c9fdac7f /src/page
parentf8ca7148d52d656506862bf5c89f4a00a3805534 (diff)
content: sprawl divideTrackListsByGroups
...Instead of tangling it in from generateTrackInfoPage, page/track.js,
and top-level page evaluation itself. This is why sprawling is better!
Diffstat (limited to 'src/page')
-rw-r--r--src/page/track.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/page/track.js b/src/page/track.js
index 9b3867c..e75b695 100644
--- a/src/page/track.js
+++ b/src/page/track.js
@@ -6,7 +6,7 @@ export function targets({wikiData}) {
   return wikiData.trackData;
 }
 
-export function pathsForTarget(track, {wikiInfo}) {
+export function pathsForTarget(track) {
   return [
     {
       type: 'page',
@@ -14,9 +14,7 @@ export function pathsForTarget(track, {wikiInfo}) {
 
       contentFunction: {
         name: 'generateTrackInfoPage',
-        args: [track, {
-          topLevelGroups: wikiInfo.divideTrackListsByGroups,
-        }],
+        args: [track],
       },
     },
   ];