« get me outta code hell

content: linkArtTagDynamically - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkArtTagInfo.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-04 15:27:47 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-04 15:28:05 -0300
commit682c8a9591b59959184d6e374d8cdd73c6ddf53d (patch)
tree7afcc1de04f5c815def76b091bb1b017e2611d14 /src/content/dependencies/linkArtTagInfo.js
parent14d566aa5ea44dbffda2540f0e44b34dedfc79bb (diff)
content: linkArtTagDynamically
Diffstat (limited to 'src/content/dependencies/linkArtTagInfo.js')
-rw-r--r--src/content/dependencies/linkArtTagInfo.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/linkArtTagInfo.js b/src/content/dependencies/linkArtTagInfo.js
new file mode 100644
index 00000000..409cb3c0
--- /dev/null
+++ b/src/content/dependencies/linkArtTagInfo.js
@@ -0,0 +1,8 @@
+export default {
+  contentDependencies: ['linkThing'],
+
+  relations: (relation, artTag) =>
+    ({link: relation('linkThing', 'localized.artTagInfo', artTag)}),
+
+  generate: (relations) => relations.link,
+};