forked from styxlab/next-cms-ghost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappConfig.ts
52 lines (41 loc) · 1.51 KB
/
appConfig.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
/**
* Some of the defaults defined here can be overwritten by environment variables
* Check lib/environments.ts
*/
// Cache control
export const fileCache: boolean = true
// Dark mode
export type DarkMode = 'dark' | 'light' | null
export const defaultMode: DarkMode = 'light'
export const overrideOS: boolean = true
// Images
export const nextFeatureImages: boolean = true
export const nextInlineImages: boolean = true
export const imageQuality: number = 80
export const sourceImages: boolean = false
// RSS
export const rssFeed: boolean = true
// Ghost Member Subscriptions
export const memberSubscriptions: boolean = true
// Commento commenting system
export const commento: boolean = false
export const commentoUrl: string = 'https://cdn.commento.io'
//export const commentoUrl: string = 'https://commento.your-blog.com'
// PrismJS
export const prism: boolean = true
export const prismIgnoreMissing: boolean = true
// Contact Page
export const contactPage: boolean = true
export const customPage = {}
// Table of Contents
export const toc: boolean = true
export const maxDepth: number = 2
// Custom site navigation (default: [], label is case sensitive)
// Override: [{ label: 'Home', url: '/' }]
// Add new: [{ label: 'Contact', url: '/contact' }]
import { NavItem } from '@lib/ghost'
export const customNavigation: NavItem[] = [{ label: 'Contact', url: '/contact' }]
// Incremental Static Regenerations (ISR)
export const isr: boolean = true
export const maxNumberOfPosts: number = 20
export const maxNumberOfPages: number = 20