forked from joshwcomeau/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
60 lines (57 loc) · 1.42 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
const path = require('path');
const alias = require('./webpack-alias');
const rssConfig = require('./rss-plugin-config');
module.exports = {
siteMetadata: {
title: "Josh Comeau's Blog",
author: 'Josh Comeau',
description:
'Personal blog of Josh Comeau, a front-end software engineer. Focuses on teaching important concepts about web development and React.js, through dynamic interactions.',
siteUrl: 'https://www.joshwcomeau.com',
social: {
twitter: '@joshwcomeau',
},
},
plugins: [
rssConfig,
{
resolve: `gatsby-plugin-alias-imports`,
options: {
alias,
extensions: [],
},
},
'gatsby-plugin-react-helmet',
'gatsby-plugin-flow',
'gatsby-plugin-styled-components',
{
resolve: `gatsby-plugin-mdx`,
options: {
defaultLayouts: {
posts: require.resolve('./src/components/BlogPost/BlogPost.js'),
},
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'posts',
path: `${__dirname}/src/pages/posts`,
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'images',
path: path.join(__dirname, 'src', 'assets', 'images'),
},
},
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: 'UA-119170920-1',
cookieExpires: 63072000, // two years
},
},
],
};