« 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.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/page/track.js b/src/page/track.js
index ea5d0dce..94a1e48d 100644
--- a/src/page/track.js
+++ b/src/page/track.js
@@ -29,5 +29,15 @@ export function pathsForTarget(track) {
         args: [track],
       },
     },
+
+    !empty(track.referencedByArtworks) && {
+      type: 'page',
+      path: ['trackReferencingArtworks', track.directory],
+
+      contentFunction: {
+        name: 'generateTrackReferencingArtworksPage',
+        args: [track],
+      },
+    },
   ];
 }