forked from chrisnmorrison/revista-gatsby-blog-magazine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
75 lines (70 loc) · 1.94 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
/**
* Configure your Gatsby site with this file.
*
* See: https://www.gatsbyjs.com/docs/gatsby-config/
*/
const path = require('path')
require('dotenv').config({
path: `.env.${process.env.NODE_ENV}`,
})
module.exports = {
pathPrefix: `/`,
siteMetadata: {
title: 'Revista',
titleTemplate: '',
// titleTemplate: "%s - Curated List of Free Education Resources",
description:
'Revista is an open source blog/magazine template. Simply write articles in Markdown, place in the content folder, and Revista will automatically create categories and articles!',
url: 'https://revista.mesmerdesign.ca', // No trailing slash allowed!
image: '/logo.png', // Path to the image placed in the 'static' folder, in the project's root directory.
twitterUsername: '',
defaultTitle: 'Revista',
},
plugins: [
`gatsby-plugin-netlify`,
`gatsby-plugin-image`,
`gatsby-plugin-sharp`,
`gatsby-transformer-sharp`,
`gatsby-plugin-styled-components`,
`gatsby-plugin-sass`,
`gatsby-plugin-postcss`,
`gatsby-read-time-estimate`,
`gatsby-transformer-remark`,
// {
// resolve: 'gatsby-plugin-robots-txt',
// options: {
// host: 'https://mysite.com',
// sitemap: 'https://mysite.com/sitemap.xml',
// policy: [{ userAgent: '*', allow: '/' }],
// },
// },
{
resolve: `gatsby-plugin-purgecss`,
options: {
content: [
path.join(process.cwd(), 'src/**/!(*.d).{ts,js,jsx,tsx,md,mdx}'),
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `assets`,
path: `${__dirname}/src/assets`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `posts`,
path: `${__dirname}/content`,
},
},
{
resolve: `gatsby-plugin-mdx`,
options: {
gatsbyRemarkPlugins: [{ resolve: 'gatsby-remark-images' }],
},
},
],
}