-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.config.js
62 lines (60 loc) · 1.22 KB
/
blog.config.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
57
58
59
60
61
62
const path = require('path')
const type = {
String: "''",
Array: '[]',
Object: '{}',
Boolean: {
true: true,
false: false,
},
}
module.exports = {
title: 'blog',
description: 'by annie tran',
url: 'https://blog.nntrn.now.sh',
GA: 'UA-91105441-10',
favicon: '/favicon.ico',
codepen: {
username: 'nntrn',
},
dir: __dirname,
root: __dirname,
social: {
github: 'https://github.com/nntrn/blog',
},
stylesheets: [
'https://unpkg.com/sanitize.css',
'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.18.1/styles/github.min.css',
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css',
'/assets/style.css',
'/assets/print.css',
],
scripts: {
console: '/assets/console.js',
},
routes: {
Home: '/',
Post: '/post',
},
dynamic: {
post: '/post/[...slug]',
tag: '/[tag]',
},
content: {
path: path.join(__dirname, 'content/'),
frontmatter: {
title: type.String,
description: type.String,
tags: type.Array,
sources: type.Array,
references: type.Array,
preview: type.Boolean.true,
},
},
theme: {
color: {
primary: '#0074d9',
secondary: '#159739',
},
},
}