« get me outta code hell

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

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

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