-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgridsome.config.js
More file actions
77 lines (74 loc) · 1.95 KB
/
Copy pathgridsome.config.js
File metadata and controls
77 lines (74 loc) · 1.95 KB
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
// This is where project configuration and plugin options are located.
// Learn more: https://gridsome.org/docs/config
// Changes here require a server restart.
// To restart press CTRL + C in terminal and run `gridsome develop`
const isProd = process.env.NODE_ENV === 'production'
module.exports = {
siteName: 'Human Nature Lab at Yale',
siteUrl: process.env.SITE_URL,
siteDescription: require('./data/projects.json').description,
icon: {
favicon: './assets/favicon.png'
},
templates: {
Project: '/project/:title'
},
chainWebpack (config) {
config.stats('verbose')
},
plugins: [{
use: '@gridsome/source-filesystem',
options: {
path: 'data/projects/**/*.md',
typeName: 'Project'
}
}, {
use: '@gridsome/plugin-google-analytics',
options: {
id: process.env.GOOGLE_ANALYTICS_ID
}
}, {
use: 'gridsome-plugin-tailwindcss',
options: {
tailwindConfig: './tailwind.js',
purgeConfig: {},
presetEnvConfig: {},
shouldPurge: false,
shouldImport: true,
// shouldTimeTravel: false,
// shouldPurgeUnusedKeyframes: isProd,
}
}, {
use: 'gridsome-plugin-typescript',
}, {
use: '@gridsome/plugin-sitemap',
options: {
'/project/*': {
changefreq: 'weekly',
priority: 0.5
}
}
}],
transformers: {
remark: {
grayMatter: {excerpt: true},
plugins: [
'@gridsome/remark-prismjs',
[require('./plugins/gridsome-remark-customize'), {
selectors: {
className: {
h1: 'text-5xl mb-2 mt-6',
h2: 'text-4xl mb-2 mt-6',
h3: 'text-3xl mb-2 mt-5',
h4: 'text-2xl mb-2 mt-4',
h5: 'text-xl mb-2 mt-4',
link: 'underline text-blue-500 hover:no-underline',
linkReference: 'underline text-blue-500 hover:no-underline',
paragraph: 'py-4'
}
}
}]
]
}
}
}