« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content
diff options
context:
space:
mode:
Diffstat (limited to 'src/content')
-rw-r--r--src/content/dependencies/linkListing.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/content/dependencies/linkListing.js b/src/content/dependencies/linkListing.js
index f27d93ac..2fc516bc 100644
--- a/src/content/dependencies/linkListing.js
+++ b/src/content/dependencies/linkListing.js
@@ -1,8 +1,14 @@
 export default {
   contentDependencies: ['linkThing'],
+  extraDependencies: ['language'],
 
   relations: (relation, listing) =>
     ({link: relation('linkThing', 'localized.listing', listing)}),
 
-  generate: (relations) => relations.link,
+  data: (listing) =>
+    ({stringsKey: listing.stringsKey}),
+
+  generate: (data, relations, {language}) =>
+    relations.link
+      .slot('content', language.$(`listingPage.${data.stringsKey}.title`)),
 };