blob: 3adc64df8c6652ceea475e2a8141ea693efa659d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
export default {
contentDependencies: ['linkAlbumGallery', 'linkAlbum'],
extraDependencies: ['pagePath'],
relations: (relation, album) => ({
galleryLink: relation('linkAlbumGallery', album),
infoLink: relation('linkAlbum', album),
}),
generate: (relations, {pagePath}) =>
(pagePath[0] === 'albumGallery'
? relations.galleryLink
: relations.infoLink),
};
|