-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatsby-config.ts
86 lines (83 loc) · 2.19 KB
/
gatsby-config.ts
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
import type { GatsbyConfig } from 'gatsby';
import path from 'path';
const config: GatsbyConfig = {
pathPrefix: '/alwest',
siteMetadata: {
title: 'AlWest',
description: 'Almería Media Collection',
author: 'Javier López Úbeda <[email protected]>',
},
mapping: {
'MarkdownRemark.frontmatter.locations': 'MarkdownRemark.frontmatter.id',
'MarkdownRemark.frontmatter.actors': 'MarkdownRemark.frontmatter.id',
'MarkdownRemark.frontmatter.directors': 'MarkdownRemark.frontmatter.id',
'MarkdownRemark.frontmatter.actor': 'MarkdownRemark.frontmatter.id',
'MarkdownRemark.frontmatter.director': 'MarkdownRemark.frontmatter.id',
'MarkdownRemark.frontmatter.films': 'MarkdownRemark.frontmatter.id',
},
plugins: [
'gatsby-plugin-sass',
'gatsby-plugin-styled-components',
{
resolve: 'gatsby-plugin-react-leaflet',
options: {
linkStyles: true,
},
},
// {
// resolve: 'gatsby-plugin-prefetch-google-fonts',
// options: {
// fonts: [
// {
// family: 'Rye',
// },
// ],
// },
// },
'gatsby-plugin-react-helmet',
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-embedder'],
},
},
'gatsby-plugin-image',
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'film',
path: path.resolve('data/films/'),
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'location',
path: path.resolve('data/locations/'),
},
},
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'staff',
path: path.resolve('data/staff/'),
},
},
{
resolve: 'gatsby-plugin-manifest',
options: {
name: 'almeria-films',
short_name: 'almeria',
start_url: '/',
background_color: '#663399',
theme_color: '#663399',
display: 'fullscreen',
icon: 'src/images/logo.png', // This path is relative to the root of the site.
},
},
'gatsby-plugin-offline',
],
};
export default config;