« get me outta code hell

content: generateAlbumTrackList, linkTrack - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkTrack.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-04 15:59:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-04 15:59:52 -0300
commit1832328c39bb1608d14e1079698c187510d924c3 (patch)
treed93003735162e520c764e165f1478501f586bbdb /src/content/dependencies/linkTrack.js
parent5b0cca036702b0726d54f90e407a06a3c80f3d66 (diff)
content: generateAlbumTrackList, linkTrack
Diffstat (limited to 'src/content/dependencies/linkTrack.js')
-rw-r--r--src/content/dependencies/linkTrack.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/linkTrack.js b/src/content/dependencies/linkTrack.js
new file mode 100644
index 0000000..d5d9672
--- /dev/null
+++ b/src/content/dependencies/linkTrack.js
@@ -0,0 +1,8 @@
+export default {
+  contentDependencies: ['linkThing'],
+
+  relations: (relation, track) =>
+    ({link: relation('linkThing', 'localized.track', track)}),
+
+  generate: (relations) => relations.link,
+};