« get me outta code hell

content: linkStationaryIndex, linkListingIndex - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/linkListingIndex.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-06-24 11:38:55 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-06-24 11:38:55 -0300
commit7d33f79430e72f8c15b2359e652b1b0afef0c1f4 (patch)
treef5c44a5d73695b1e6924250d959b08dd323797a5 /src/content/dependencies/linkListingIndex.js
parent84f2a815ea1e25b46086869a9099659fd46a3640 (diff)
content: linkStationaryIndex, linkListingIndex
Diffstat (limited to 'src/content/dependencies/linkListingIndex.js')
-rw-r--r--src/content/dependencies/linkListingIndex.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/content/dependencies/linkListingIndex.js b/src/content/dependencies/linkListingIndex.js
new file mode 100644
index 00000000..1bfaf46e
--- /dev/null
+++ b/src/content/dependencies/linkListingIndex.js
@@ -0,0 +1,12 @@
+export default {
+  contentDependencies: ['linkStationaryIndex'],
+
+  relations: (relation) =>
+    ({link:
+        relation(
+          'linkStationaryIndex',
+          'localized.listingIndex',
+          'listingIndex.title')}),
+
+  generate: (relations) => relations.link,
+};