« get me outta code hell

homepage.js « page « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page/homepage.js
blob: 15dcadd142dd42c1abd6df3090f73398f7f968e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Homepage specification.

import {
  bindOpts,
  empty,
  withEntries,
} from '../util/sugar.js';

import {
  getNewAdditions,
  getNewReleases,
} from '../util/wiki-data.js';

export const description = `main wiki homepage`;

export function pathsTargetless({wikiData}) {
  return [
    {
      type: 'page',
      path: ['home'],

      contentFunction: {
        name: 'generateWikiHomePage',
        args: [wikiData.homepageLayout],
      },
    },
  ];
}