diff options
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 |
commit | 6efb1212dd643dc98e71e272a1a66f042884edb9 (patch) | |
tree | adc250ac6fc8941a48ddd1c1f1e7d641c9fdac7f /src/page | |
parent | f8ca7148d52d656506862bf5c89f4a00a3805534 (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.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/page/track.js b/src/page/track.js index 9b3867c9..e75b6958 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], }, }, ]; |