« get me outta code hell

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

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

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