« get me outta code hell

content, test: image (and linkArtTag) - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkArtTag.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-04-05 21:25:15 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-04-05 21:33:44 -0300
commit7fb97e45fb926aed5b6aceeb53abb139368a36ac (patch)
treea181caddaa83a2fc36b2ad332ebc89a45b373702 /src/content/dependencies/linkArtTag.js
parent64885f8124106ef6e5ed400ad3bf2a813ccb0cd5 (diff)
content, test: image (and linkArtTag)
Diffstat (limited to 'src/content/dependencies/linkArtTag.js')
-rw-r--r--src/content/dependencies/linkArtTag.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/content/dependencies/linkArtTag.js b/src/content/dependencies/linkArtTag.js
new file mode 100644
index 00000000..7ddb7786
--- /dev/null
+++ b/src/content/dependencies/linkArtTag.js
@@ -0,0 +1,8 @@
+export default {
+  contentDependencies: ['linkThing'],
+
+  relations: (relation, artTag) =>
+    ({link: relation('linkThing', 'localized.tag', artTag)}),
+
+  generate: (relations) => relations.link,
+};