« get me outta code hell

linkWikiHome.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/linkWikiHome.js
blob: 06ec64389b9184e5b403e12c5f6756f5aa6db448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export default {
  contentDependencies: ['linkStationaryIndex'],
  extraDependencies: ['wikiData'],

  sprawl({wikiInfo}) {
    return {wikiShortName: wikiInfo.nameShort};
  },

  relations: (relation) =>
    ({link: relation('linkTemplate')}),

  data: (sprawl) =>
    ({wikiShortName: sprawl.wikiShortName}),

  generate: (data, relations) =>
    relations.link.slots({
      path: ['home'],
      content: data.wikiShortName,
    }),
};