diff options
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/track.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/page/track.js b/src/page/track.js index e75b6958..beb804f8 100644 --- a/src/page/track.js +++ b/src/page/track.js @@ -1,5 +1,7 @@ // Track page specification. +import {empty} from '#sugar'; + export const description = `per-track info pages`; export function targets({wikiData}) { @@ -17,5 +19,16 @@ export function pathsForTarget(track) { args: [track], }, }, + + !empty(track.referencedArtworks) && + { + type: 'page', + path: ['trackReferencedArtworks', track.directory], + + contentFunction: { + name: 'generateTrackReferencedArtworksPage', + args: [track], + }, + }, ]; } |