-
Notifications
You must be signed in to change notification settings - Fork 0
/
gridsome.config.js
113 lines (110 loc) · 2.52 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
require("dotenv").config();
const i18n_routes = require('./src/locales/routes');
module.exports = {
siteName: 'Místní knihovna Stonava',
siteUrl: 'knihovna.stonava.cz',
plugins: [
{
use: "gridsome-plugin-tailwindcss",
options: {
tailwindConfig: './tailwind.config.js',
presetEnvConfig: {},
shouldImport: false,
shouldTimeTravel: false
}
},
{
use: "gridsome-source-graphql-prismic",
options: {
url: process.env.PRISMIC_API_URL,
fieldName: 'prismicio',
typeName: 'prismicio',
headers: {
'Prismic-Ref': ``, // useMasterRef will overload this line
'Authorization': `Token ${process.env.PRISMIC_TOKEN}`,
},
useMasterRef: true // undefined by default
}
},
{
use: 'gridsome-plugin-typescript',
},
{
use: 'gridsome-plugin-ogp'
},
{
use: '@gridsome/plugin-sitemap',
options: {
exclude: ['/pl/**'],
output: '/cs/sitemap.xml',
include: [
'/cs/info', '/cs/info/**', '/cs/**'
]
},
},
{
use: '@gridsome/plugin-sitemap',
options: {
exclude: ['/cs/**'],
output: '/pl/sitemap.xml',
include: [
'/pl/info', '/pl/info/**', '/pl/**'
]
},
},
{
use: "gridsome-plugin-i18n",
options: {
enablePathRewrite: true, // rewrite path with locale prefix, default: true
enablePathGeneration: false,
rewriteDefaultLanguage: true, // default: true
messages: /*process.env.NODE_ENV === 'production' &&*/ {
'cs-CZ': require('./src/locales/cs'),
'pl-CZ': require('./src/locales/pl'),
},
...i18n_routes
}
},
{
use: '@gridsome/source-filesystem',
options: {
path: 'content/*/info/**/*.md',
typeName: 'Info',
}
},
{
use: '@gridsome/source-filesystem',
options: {
path: 'content/*/project/**/*.md',
typeName: 'Project',
}
},
{
use: '@gridsome/source-filesystem',
options: {
path: 'content/*/service/**/*.md',
typeName: 'Service',
}
},
],
transformers: {
remark: {
plugins: [
'remark-slug',
require('remark-gfm'),
],
config: {
gfm : true,
footnotes: true
}
}
},
templates: {
Info: [
{
path: '/:lang/info/:slug',
component: './src/templates/InfoPage.vue'
}
],
}
}