« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/flash.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/flash.js')
-rw-r--r--src/page/flash.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/page/flash.js b/src/page/flash.js
index 2f5778e..f5d7347 100644
--- a/src/page/flash.js
+++ b/src/page/flash.js
@@ -13,6 +13,31 @@ export function targets({wikiData}) {
   return wikiData.flashData;
 }
 
+export function pathsForTarget(flash) {
+  return [
+    {
+      type: 'page',
+      path: ['flash', flash.directory],
+
+      contentFunction: {
+        name: 'generateFlashInfoPage',
+        args: [flash],
+      },
+    },
+  ];
+}
+
+export function pathsTargetless() {
+  return [
+    {
+      type: 'page',
+      path: ['flashIndex'],
+      contentFunction: {name: 'generateFlashIndexPage'},
+    },
+  ];
+}
+
+/*
 export function write(flash, {wikiData}) {
   const page = {
     type: 'page',
@@ -337,3 +362,4 @@ function generateSidebarForFlash(flash, {
     ],
   };
 }
+*/