« get me outta code hell

linkPathFromSite.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/linkPathFromSite.js
blob: 67a43059fc5b8fb09c5b8f826a0fe1ae3496b0ff (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', ['localized.path', data.path]),
};