« 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/dependencies/listRandomPageLinks.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/dependencies/listRandomPageLinks.js')
-rw-r--r--src/content/dependencies/listRandomPageLinks.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/content/dependencies/listRandomPageLinks.js b/src/content/dependencies/listRandomPageLinks.js
new file mode 100644
index 0000000..28a925a
--- /dev/null
+++ b/src/content/dependencies/listRandomPageLinks.js
@@ -0,0 +1,28 @@
+export default {
+  contentDependencies: ['generateListingPage'],
+  extraDependencies: ['html', 'wikiData'],
+
+  sprawl() {
+    return {};
+  },
+
+  query(sprawl, spec) {
+    return {
+      spec,
+    };
+  },
+
+  relations(relation, query) {
+    return {
+      page: relation('generateListingPage', query.spec),
+    };
+  },
+
+  generate(relations, {html}) {
+    return relations.page.slots({
+      type: 'custom',
+      content:
+        html.tag('p', `Alright alright, this is a stub page! Coming soon!`),
+    });
+  },
+};