From 257b7616e3a0997f2a5c2766c7923719cf2ca0b5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 17 Nov 2024 16:38:07 -0400 Subject: content: generateTrackReferencedArtworksPage --- src/page/track.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/page/track.js') 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], + }, + }, ]; } -- cgit 1.3.0-6-gf8a5