-
Notifications
You must be signed in to change notification settings - Fork 6
/
gridsome.config.js
113 lines (113 loc) · 2.07 KB
/
gridsome.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
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
module.exports = {
myName: "Jordon Bedwell",
twitterUser: "envygeeks",
siteName: "Jordon Bedwell - EnvyGeeks",
siteDescription: "The website of Jordon Bedwell",
readMoreIdentifier: "<!-- MORE -->",
siteTitle: "Jordon Bedwell",
siteSubTitle: "EnvyGeeks",
githubUser: "envygeeks",
siteUrl: "envygeeks.io",
titleTemplate: "%s",
useSSL: true,
permalinks: {
trailingSlash: false
},
icon: {
touchicon: null,
favicon: null
},
siteNav: [
{
id: 1,
title: "Home",
to: "/"
},
{
id: 2,
title: "About",
to: "/about"
},
{
id: 3,
title: "Archives",
to: "/archives"
}
],
headers: {
meta: [
{
name: "HandheldFriendly",
content: "True"
},
{
"http-equiv": "X-UA-Compatible",
content: "IE=edge"
}
]
},
plugins: [
{
use: "@gridsome/source-filesystem",
options: {
path: "src/posts/**/*.md",
typeName: "Post",
refs: {
author: {
typeName: "Author",
create: false
},
tags: {
typeName: "Tag",
create: true
}
}
}
},
{
use: "@gridsome/source-filesystem",
options: {
path: "src/authors/**/*.json",
typeName: "Author"
}
}
],
templates: {
Post: "/blog/:year/:month/:day/:title",
Tag: "/tag/:id"
},
transformers: {
remark: {
externalLinksTarget: "_blank",
externalLinksRel: [
"nofollow",
"noreferrer",
"noopener"
],
autolinkHeadings: {
behavior: 'wrap',
content: {
type: 'element',
tagName: 'span',
properties: {
className: [
'this', 'is', 'disabled'
]
}
}
},
plugins: [
[
"@gridsome/remark-prismjs", {
// Next Release -- showLineNumbers: true
}
]
]
}
},
skipOnMeta: [
"headers",
"transformers",
"plugins"
]
}