« get me outta code hell

linkWikiHomepage.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/linkWikiHomepage.js
blob: 91fbe410697d9f5f4e0964a3bbd9900668bad6df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export default {
  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,
    }),
};