« get me outta code hell

news.js « files « data « src - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/files/news.js
blob: 5b4a3029dc953d4677fea68e810052cb12001c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import {sortChronologically} from '#sort';

export default ({
  documentModes: {allInOne},
  thingConstructors: {NewsEntry},
}) => ({
  title: `Process news data file`,
  file: 'news.yaml',

  documentMode: allInOne,
  documentThing: NewsEntry,

  sort({newsData}) {
    sortChronologically(newsData, {latestFirst: true});
  },
});