-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.js
104 lines (102 loc) · 3.07 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
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
require("dotenv").config()
module.exports = {
siteMetadata: {
title: `Janne Heikkinen`,
description: `Kokoomuksen kansanedustaja, Oulun kaupunginvaltuutettu, yhteiskuntatieteiden maisteri ja intohimoinen perhokalastaja. Vapaus, ympäristö ja turvallisuus.`,
author: `Integrify`,
image: ``,
},
plugins: [
`gatsby-transformer-remark`,
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GOOGLE_ANALYTICS_TRACKING_ID,
head: true,
},
},
{
resolve: `gatsby-plugin-sass`,
options: {
data:
'@import "_variables.scss";@import "_mixins.scss";@import "_layout.scss";',
includePaths: ["src/assets/styles"],
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
endpoint:
"https://janneheikkinen.us20.list-manage.com/subscribe/post?u=a88b374216f116ad1692ca496&id=b317801c18",
},
},
{
resolve: `gatsby-source-youtube-v2`,
options: {
channelId: process.env.YOUTUBE_CHANNEL_ID,
apiKey: process.env.YOUTUBE_API_KEY,
maxVideos: 50, // Defaults to 50
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
path: `${__dirname}/src/components/SocialMedia`,
name: "SocialMedia",
},
},
{
resolve: `gatsby-source-contentful`,
options: {
spaceId: process.env.CONTENTFUL_SPACE_ID,
accessToken: process.env.CONTENTFUL_ACCESS_TOKEN,
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Janne Heikkinen`,
start_url: `/`,
display: `minimal-ui`,
icon: `src/images/fav.png`, // This path is relative to the root of the site.
},
},
// {
// resolve: "gatsby-source-wordpress",
// options: {
// baseUrl: "http://www.janneheikkinen.fi",
// protocol: "http",
// hostingWPCOM: false,
// useACF: false,
// acfOptionPageIds: [],
// verboseOutput: false,
// perPage: 100,
// searchAndReplaceContentUrls: {
// sourceUrl: "http://www.janneheikkinen.fi/blogi/",
// },
// // Set how many simultaneous requests are sent at once.
// concurrentRequests: 10,
// // Set WP REST API routes whitelists
// // and blacklists using glob patterns.
// // Defaults to whitelist the routes shown
// // in the example below.
// // See: https://github.com/isaacs/minimatch
// // Example: `["/*/*/comments", "/yoast/**"]`
// // ` will either include or exclude routes ending in `comments` and
// // all routes that begin with `yoast` from fetch.
// // Whitelisted routes using glob patterns
// includedRoutes: ["**/posts", "**/tags"],
// },
// },
],
}