diff options
Diffstat (limited to 'src/page/static.js')
-rw-r--r-- | src/page/static.js | 14 |
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', |