« get me outta code hell

generateBackToAlbumLink.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/generateBackToAlbumLink.js
blob: 6648b463e5d927520fdc5d01c90038ba4155e270 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export default {
  contentDependencies: ['linkAlbum'],
  extraDependencies: ['language'],

  relations: (relation, track) => ({
    trackLink:
      relation('linkAlbum', track),
  }),

  generate: (relations, {language}) =>
    relations.trackLink.slots({
      content: language.$('albumPage.nav.backToAlbum'),
      color: false,
    }),
};