« 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: 6467646502cad1cec1a7a990db058afc68e68454 (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', ['localized.path', data.path]),
};