-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-config.js
91 lines (89 loc) · 2.23 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
function getNodes(results) {
return {
allPages: results.edges.map((edge) => edge.node),
originalType: `edges`,
}
}
function isArchivePage(path) {
return /\/archive*/.test(path)
}
module.exports = {
siteMetadata: {
title: `Require Podcast`,
description: `Polski podcast na temat JavaScriptu i nie tylko. "Na luzie" o technologiach frontendowych, przez nowości ze świata IT, po frameworki na backendzie!`,
author: `Adam Siekierski & Artur Dudek`,
siteUrl: `https://require.pl`,
},
plugins: [
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `require('podcast');`,
short_name: `Require Podcast`,
start_url: `/`,
background_color: `#0f111a`,
theme_color: `#FF5370`,
display: `standalone`,
icon: `src/images/require_mark_transparent.svg`,
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `episodes`,
path: `${__dirname}/episodes`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
extensions: [".md"],
gatsbyRemarkPlugins: [
{
resolve: "gatsby-remark-external-links",
options: {
target: "_blank",
rel: "nofollow noopener noreferrer",
},
},
],
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
trackingIds: ["G-N1WS6MZRRG"],
pluginConfig: {
head: false,
},
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
serialize: ({ site, allSitePage }) => {
const { allPages } = getNodes(allSitePage)
return allPages.map((page) => {
return {
url: `${site.siteMetadata.siteUrl}${page.path}`,
changefreq: `weekly`,
priority: isArchivePage(page.path) ? 0.5 : 0.9,
}
})
},
},
},
`gatsby-plugin-offline`,
`gatsby-plugin-sass`,
],
}