-
Notifications
You must be signed in to change notification settings - Fork 4
/
gridsome.config.js
45 lines (40 loc) · 1.24 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
// 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 yaml = require('js-yaml')
const fs = require('fs')
module.exports = {
siteName: 'Laboratory of Multi-Agent Systems in Smart Cities and Industry 4.0',
plugins: [
{
use: "gridsome-plugin-translateit",
options: {
locales: ["en", "ru"],
defaultLocale: "en",
translations: yaml.load(fs.readFileSync('./src/data/locales/translations.yaml', 'utf8')),
collections: ['projects'],
routes: yaml.load(fs.readFileSync('./src/data/locales/routes.yaml', 'utf8')),
}
},
{
// Create posts from markdown files
use: "@gridsome/vue-remark",
options: {
typeName: "Post",
baseDir: "projects",
pathPrefix: '/projects',
template: './src/templates/Project.vue',
plugins: [
['@noxify/gridsome-plugin-remark-embed', {'enabledProviders' : ['Youtube']}],
]
}
},
{
use: "gridsome-plugin-google-sheets-post",
options: {
script: process.env.FORM_SCRIPT
}
}
]
}