« get me outta code hell

content, css: cover artwork reference details, non-unique art line - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkTrackReferencingArtworks.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-11-19 15:56:40 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-11-19 16:05:41 -0400
commitc31d38c4778e51fb90958c40af93519661538889 (patch)
treec9d7b42e9a26657efebb22495424c26b19848a5e /src/content/dependencies/linkTrackReferencingArtworks.js
parentd746ff26c3e7517c8aaff7615ae4da06fa2d01c0 (diff)
content, css: cover artwork reference details, non-unique art line
Diffstat (limited to 'src/content/dependencies/linkTrackReferencingArtworks.js')
-rw-r--r--src/content/dependencies/linkTrackReferencingArtworks.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/linkTrackReferencingArtworks.js b/src/content/dependencies/linkTrackReferencingArtworks.js
new file mode 100644
index 00000000..c9c9f4d1
--- /dev/null
+++ b/src/content/dependencies/linkTrackReferencingArtworks.js
@@ -0,0 +1,8 @@
+export default {
+  contentDependencies: ['linkThing'],
+
+  relations: (relation, track) =>
+    ({link: relation('linkThing', 'localized.trackReferencingArtworks', track)}),
+
+  generate: (relations) => relations.link,
+};