-
Notifications
You must be signed in to change notification settings - Fork 0
/
gridsome.config.js
63 lines (62 loc) · 1.21 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
module.exports = {
siteName: 'Auto7',
siteUrl: 'https://auto7.online',
siteDescription: 'Në Hap Me Botën e Automobilave',
titleTemplate: `%s`,
pathPrefix: `/`,
plugins: [{
use: 'gridsome-plugin-rss',
options: {
contentTypeName: 'Post',
feedOptions: {
title: 'AUTO7 RSS',
feed_url: 'https://auto7.online/feed.xml',
site_url: 'https://auto7.online'
},
feedItemOptions: node => ({
title: node.title,
description: node.content,
url: 'https://auto7.online/' + node.slug,
author: node.author,
date: node.date,
categories: node.tags
}),
output: {
dir: './static',
name: 'feed.xml'
}
}
},
{
use: '@gridsome/plugin-google-analytics',
options: {
id: 'UA-XXXXXXXXX-X'
}
},
{
use: '@gridsome/source-filesystem',
options: {
path: 'blog/*.md',
typeName: 'Post',
route: '/:slug',
refs: {
author: 'Author',
tags: {
typeName: 'Tag',
route: '/tag/:title',
create: true
}
}
}
},
{
use: '@gridsome/source-filesystem',
options: {
// TODO Use yaml file as data source
path: 'data/author/*.md',
typeName: 'Author',
route: '/author/:id'
}
}
]
}