« 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/static.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/page/static.js')
-rw-r--r--src/page/static.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/page/static.js b/src/page/static.js
index 8572db4e..4b8f8f4e 100644
--- a/src/page/static.js
+++ b/src/page/static.js
@@ -8,6 +8,20 @@ export function targets({wikiData}) {
   return wikiData.staticPageData;
 }
 
+export function pathsForTarget(staticPage) {
+  return [
+    {
+      type: 'page',
+      path: ['staticPage', staticPage.directory],
+
+      contentFunction: {
+        name: 'generateStaticPage',
+        args: [staticPage],
+      },
+    },
+  ];
+}
+
 export function write(staticPage) {
   const page = {
     type: 'page',