« get me outta code hell

linkNewsEntry.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/linkNewsEntry.js
blob: 1fb32dd9a7f8b892b487304b49d8d74a173e64d2 (plain)
1
2
3
4
5
6
7
8
export default {
  contentDependencies: ['linkThing'],

  relations: (relation, newsEntry) =>
    ({link: relation('linkThing', 'localized.newsEntry', newsEntry)}),

  generate: (relations) => relations.link,
};