« 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: d8d3d0a0d19598cc1e3628e172915560c513e7bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export default {
  contentDependencies: ['linkTemplate'],
  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: ['localized.home'],
      content: data.wikiShortName,
    }),
};