« get me outta code hell

linkPathFromRoot.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/linkPathFromRoot.js
blob: dab3ac1f5528ef84b4c6c7f0162e52989dfb6f9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default {
  contentDependencies: ['linkTemplate'],

  relations: (relation) =>
    ({link: relation('linkTemplate')}),

  data: (path) =>
    ({path}),

  generate: (data, relations) =>
    relations.link
      .slot('path', ['shared.path', data.path]),
};