« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/track.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/track.js')
-rw-r--r--src/page/track.js13
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],
+        },
+      },
   ];
 }