-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
scully.notiz.config.ts
93 lines (88 loc) · 2.04 KB
/
scully.notiz.config.ts
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { ScullyConfig, setPluginConfig } from '@scullyio/scully';
/** this loads the default render plugin, remove when switching to something else. */
import '@scullyio/scully-plugin-puppeteer';
import '@notiz/scully-plugin-copy-static-content';
import '@notiz/scully-plugin-rss';
import '@notiz/scully-plugin-medium-zoom';
import './projects/banner-generator';
import './node_modules/@notiz/shortcodes/scully';
import './scully/plugins/fouc';
import './scully/plugins/lazy-images';
import {
getSitemapPlugin,
SitemapConfig,
} from '@gammastream/scully-plugin-sitemap';
const defaultPostRenderers = [
'fouc',
'seoHrefOptimise',
'lazyImages',
'mediumZoom',
'copyStaticContent',
'shortcodes',
];
const SitemapPlugin = getSitemapPlugin();
const sitemapConfig: SitemapConfig = {
urlPrefix: 'https://notiz.dev',
sitemapFilename: 'sitemap.xml',
changeFreq: 'weekly',
priority: [
'1.0',
'0.9',
'0.8',
'0.7',
'0.6',
'0.5',
'0.4',
'0.3',
'0.2',
'0.1',
'0.0',
],
ignoredRoutes: ['/404', '/confirm-subscription', '/unsubscribe'],
routes: {
'/blog/:slug': {
changeFreq: 'daily',
priority: '0.9',
sitemapFilename: 'sitemap-blog.xml',
},
'/tags/:slug': {
changeFreq: 'daily',
priority: '0.9',
sitemapFilename: 'sitemap-tags.xml',
},
},
};
setPluginConfig(SitemapPlugin, sitemapConfig);
export const config: ScullyConfig = {
projectRoot: './src',
projectName: 'notiz',
defaultPostRenderers,
outDir: './dist/static',
routes: {
'/blog/:slug': {
type: 'contentFolder',
slug: {
folder: './content/blog',
},
postRenderers: [...defaultPostRenderers, 'bannerGenerator'],
},
'/authors/:slug': {
type: 'contentFolder',
slug: {
folder: './content/authors',
},
},
'/tags/:slug': {
type: 'contentFolder',
slug: {
folder: './content/tags',
},
},
'/legal/:slug': {
type: 'contentFolder',
slug: {
folder: './content/legal',
},
},
},
};