-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
56 lines (43 loc) · 1.22 KB
/
index.js
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
const moment = require('moment');
const _ = require('lodash');
module.exports = {
/**
* Use the includePieceTypes array to list the module name of any pieces that should be included
* eg: ['my-pieces-module']
*/
includePieceTypes: [],
/**
* File name used in the URL for the site map, also used as a key in the cache
*/
siteMapFile: 'sitemap.xml',
/**
* Maximum number of pieces to display in the site map per piece type
*/
maxPiecesPerType: 50,
/**
* Filter used when finding pages, can be overridden here to change the level to find
* or add any other criteria necessary
*/
siteMapPageFilter: {
level: 0,
},
/**
* Set an array of page types to be excluded from the main list of pages in the site map,
* eg: ['my-secret-page']
*/
excludePageTypes: ['apostrophe-search'],
/**
* Maximum depth to traverse finding child pages
*/
childPageDepth: 3,
afterConstruct (self) {
self.enableCache();
self.addRoutes();
self.addTasks();
},
construct (self, options) {
require('./lib/cache')(self, options);
require('./lib/routes')(self, options);
require('./lib/tasks')(self, options);
}
};