« get me outta code hell

generateGroupSecondaryNav.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/generateGroupSecondaryNav.js
blob: 1d21ab1c360e5c938753d7e5c8e403b39bffda0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export default {
  contentDependencies: [
    'generateSecondaryNav',
    'generateGroupSecondaryNavCategoryPart',
  ],

  relations: (relation, group) => ({
    secondaryNav:
      relation('generateSecondaryNav'),

    categoryPart:
      relation('generateGroupSecondaryNavCategoryPart', group.category, group),
  }),

  generate: (relations) =>
    relations.secondaryNav.slots({
      class: 'nav-links-groups',
      content: relations.categoryPart,
    }),
};