diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-02 21:41:30 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-08-02 21:41:30 -0300 |
commit | 473740f69dcbad408b0d84567c2bb2de97e8a4aa (patch) | |
tree | 7ca866cbe2f58fbb598a76089b411d38f2d3ba13 /src/page | |
parent | e2cdee25fa4d7464f8429a951fe368b96ee48834 (diff) |
content: bunch of stub pages
Diffstat (limited to 'src/page')
-rw-r--r-- | src/page/flash.js | 26 | ||||
-rw-r--r-- | src/page/index.js | 2 |
2 files changed, 27 insertions, 1 deletions
diff --git a/src/page/flash.js b/src/page/flash.js index 2f5778e8..f5d73475 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, { ], }; } +*/ diff --git a/src/page/index.js b/src/page/index.js index a2cdbbdf..e62241d9 100644 --- a/src/page/index.js +++ b/src/page/index.js @@ -10,7 +10,7 @@ export * as album from './album.js'; export * as artist from './artist.js'; export * as artistAlias from './artist-alias.js'; -// export * as flash from './flash.js'; +export * as flash from './flash.js'; export * as group from './group.js'; export * as homepage from './homepage.js'; export * as listing from './listing.js'; |