« get me outta code hell

listRandomPageLinks.js « dependencies « content « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/content/dependencies/listRandomPageLinks.js
blob: 28a925ac5bcd378b8d277e01d3833903b5dc702d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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!`),
    });
  },
};