« 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: b4a90c07afe0a6fc2272bafd50d4971780c26dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
export default {
  relations: (relation) =>
    ({link: relation('linkTemplate')}),

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

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