-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-config.js
71 lines (69 loc) · 2.36 KB
/
gatsby-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
const config = require('./data/SiteConfig')
const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix
module.exports = {
pathPrefix: config.pathPrefix,
siteMetadata: {
title: `Cruftless Craft`,
description: `Sweet and Spicy dev tips for Craft CMS`,
siteUrl: config.siteUrl + pathPrefix,
rssMetadata: {
site_url: config.siteUrl + pathPrefix,
feed_url: config.siteUrl + pathPrefix + config.siteRss,
title: config.siteTitle,
description: config.siteDescription,
image_url: `${config.siteUrl + pathPrefix}/logos/logo-512.png`,
author: config.userName,
copyright: config.copyright,
},
},
plugins: [
{
resolve: 'gatsby-plugin-feed',
},
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'posts',
path: `${__dirname}${config.blogPostDir}`,
},
},
{
resolve: 'gatsby-transformer-remark', // Markdown
options: {
plugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 690,
},
},
{
resolve: 'gatsby-remark-responsive-iframe',
},
{
resolve: 'gatsby-remark-external-links',
options: {
target: '_blank',
},
},
'gatsby-remark-smartypants',
'gatsby-remark-copy-linked-files',
'gatsby-remark-autolink-headers',
'gatsby-remark-prismjs', // keep this under autolink headers https://github.com/gatsbyjs/gatsby/issues/5764
],
},
},
{
resolve: 'gatsby-plugin-google-analytics',
options: {
trackingId: config.googleAnalyticsID,
},
},
'gatsby-plugin-sass',
'gatsby-plugin-sharp', // image manipulation
'gatsby-plugin-sitemap',
'gatsby-plugin-offline',
'gatsby-plugin-remove-trailing-slashes',
],
}