diff options
Diffstat (limited to 'src/content/dependencies/generateFlashInfoPage.js')
-rw-r--r-- | src/content/dependencies/generateFlashInfoPage.js | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/content/dependencies/generateFlashInfoPage.js b/src/content/dependencies/generateFlashInfoPage.js new file mode 100644 index 00000000..4316d7c1 --- /dev/null +++ b/src/content/dependencies/generateFlashInfoPage.js @@ -0,0 +1,38 @@ +export default { + contentDependencies: ['generatePageLayout'], + extraDependencies: ['html', 'language'], + + relations(relation) { + const relations = {}; + + relations.layout = + relation('generatePageLayout'); + + return relations; + }, + + data(flash) { + return { + name: flash.name, + }; + }, + + generate(data, relations, {html, language}) { + return relations.layout.slots({ + title: + language.$('flashPage.title', { + flash: data.name, + }), + + mainContent: [ + html.tag('p', `Alright alright, this is a stub page! Coming soon!`), + ], + + navLinkStyle: 'hierarchical', + navLinks: [ + {auto: 'home'}, + {auto: 'current'}, + ], + }); + }, +}; |