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/content/dependencies/listRandomPageLinks.js | |
parent | e2cdee25fa4d7464f8429a951fe368b96ee48834 (diff) |
content: bunch of stub pages
Diffstat (limited to 'src/content/dependencies/listRandomPageLinks.js')
-rw-r--r-- | src/content/dependencies/listRandomPageLinks.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/content/dependencies/listRandomPageLinks.js b/src/content/dependencies/listRandomPageLinks.js new file mode 100644 index 00000000..28a925ac --- /dev/null +++ b/src/content/dependencies/listRandomPageLinks.js @@ -0,0 +1,28 @@ +export default { + contentDependencies: ['generateListingPage'], + extraDependencies: ['html', 'wikiData'], + + sprawl() { + return {}; + }, + + query(sprawl, spec) { + return { + spec, + }; + }, + + relations(relation, query) { + return { + page: relation('generateListingPage', query.spec), + }; + }, + + generate(relations, {html}) { + return relations.page.slots({ + type: 'custom', + content: + html.tag('p', `Alright alright, this is a stub page! Coming soon!`), + }); + }, +}; |