-
Notifications
You must be signed in to change notification settings - Fork 3
/
gridsome.config.js
87 lines (79 loc) · 1.79 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
// 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 = {
siteUrl: process.env.SITE_URL,
siteName: 'Preset',
siteDescription: 'Elegant preset mechanism',
longDescription: 'Preset is a command line tool for applying existing presets to your freshly scaffolded project.',
icon: {
favicon: './src/assets/favicon.png',
touchicon: './src/assets/favicon.png',
},
templates: {
MarkdownPage: [
{
// Removes the digits in the urls, used to order stuff in the source code
path: (node) => node.path.replace(/(\d{2}-)/g, ''),
},
],
},
settings: {
websiteRepository: process.env.WEBSITE_REPOSITORY,
links: [
{
id: 'docs',
name: 'Documentation',
title: 'Read the documentation',
url: '/docs/',
icon: 'book',
},
{
id: 'twitter',
name: 'Twitter',
title: 'Visit my Twitter',
url: process.env.TWITTER_URL || false,
icon: 'twitter',
},
{
id: 'github',
name: 'Github',
title: 'Visit the repositories',
url: process.env.GITHUB_URL || false,
icon: 'github',
},
],
},
plugins: [
{
use: '@gridsome/source-filesystem',
options: {
baseDir: './content',
path: '**/*.md',
typeName: 'MarkdownPage',
remark: {
externalLinksTarget: '_blank',
externalLinksRel: ['noopener', 'noreferrer'],
plugins: ['@gridsome/remark-prismjs', 'remark-hint'],
},
},
},
{
use: '@gridsome/plugin-sitemap',
options: {},
},
],
css: {
loaderOptions: {
postcss: {
plugins: [
//
require('tailwindcss'),
require('postcss-nested'),
require('postcss-font-magician'),
],
},
},
},
};