diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 16:38:07 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-11-17 16:39:59 -0400 |
commit | 257b7616e3a0997f2a5c2766c7923719cf2ca0b5 (patch) | |
tree | 366ad2dfca2643c1a0a59b238b98cad0abce0e8f /src/page/track.js | |
parent | 9c3da1ff14bf2760a6358bcab1bdc97f012c2b46 (diff) |
content: generateTrackReferencedArtworksPage
Diffstat (limited to 'src/page/track.js')
-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], + }, + }, ]; } |