forked from kendallstrautman/brevifolia-gridsome-forestry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gridsome.config.js
31 lines (30 loc) · 826 Bytes
/
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
const config = require("./src/assets/content/data/config.json")
const infoData = require("./src/assets/content/data/info.json")
module.exports = {
siteName: config.title,
//need this for forestry preview docker image
host: process.env.HOSTNAME,
port: 8080,
//----------------
//make editable config & data files available to graphql
metaData: {
siteName: config.title,
siteDescription: config.description,
infoData: infoData,
},
plugins: [
{
use: '@gridsome/source-filesystem',
options: {
typeName: 'Blog',
baseDir: "./src/assets/content/",
path: 'blog/**/*.md',
resolveAbsolutePaths: true,
remark: {
externalLinksTarget: "_blank",
externalLinksRel: ["nofollow", "noopener", "noreferrer"]
}
}
}
]
}