-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathgridsome.config.js
More file actions
32 lines (30 loc) · 806 Bytes
/
gridsome.config.js
File metadata and controls
32 lines (30 loc) · 806 Bytes
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
// 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`
module.exports = {
siteName: 'Gridsome Blog',
siteDescription: 'A simple blog designed with Gridsome',
templates: {
Post: '/blog/:title',
},
plugins: [
{
use: '@gridsome/source-filesystem',
options: {
path: 'content/posts/**/*.md',
typeName: 'Post',
}
}
],
transformers: {
//Add markdown support to all file-system sources
remark: {
externalLinksTarget: '_blank',
externalLinksRel: ['nofollow', 'noopener', 'noreferrer'],
plugins: [
'@gridsome/remark-prismjs'
]
}
},
}