forked from netlify/staticgen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
107 lines (103 loc) · 3.53 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
105
106
107
const { oneLine, stripIndent } = require('common-tags')
const description = oneLine`
StaticGen is a leaderboard of the top open source static site generators. Promoting a static
approach to building websites.
`
module.exports = {
siteMetadata: {
url: 'https://staticgen.com',
title: `StaticGen`,
description: oneLine`
Kick off your next, great Gatsby project with this default starter. This barebones starter
ships with the main Gatsby configuration files you might need.
`,
author: `@netlify`,
image: 'https://staticgen.com/images/staticgen.png',
repo: 'https://github.com/netlify/staticgen',
homeTitle: 'StaticGen | Top Open Source Static Site Generators',
subtitle: 'A List of Static Site Generators for Jamstack Sites',
description,
socialPreviewImageFilename: 'staticgen.png',
shareButtons: ['twitter', 'reddit'],
shareText: 'Check out StaticGen, a leaderboard of open source static site generators.',
shareTextProjectStart: 'Check out ',
shareTextProjectEnd: ', an open source static site generator on the staticgen.com leaderboard.',
footerMarkdown: oneLine`
StaticGen is hosted and maintained by [Netlify](https://www.netlify.com), the perfect way to
deploy your [Jamstack sites and apps](https://www.netlify.com/jamstack).
`,
copyrightName: 'Netlify',
promoMarkdown: stripIndent`
## Get started with one click!
For generators with the "Deploy to Netlify" button, you can deploy a new site from a template
with one click. Get HTTPS, continuous delivery, and bring a custom domain, free of charge.
Want your own Deploy to Netlify button? [Learn more
here](https://www.netlify.com/docs/deploy_button/).
`,
navLinks: [
{ url: 'https://jamstack.org', text: 'About Jamstack' },
{ url: 'https://headlesscms.org', text: 'Need a Static CMS?' },
],
fallbackSortField: 'title',
sorts: [
{ field: 'stars', label: 'Stars (7 days)', reverse: true, days: 7 },
{ field: 'stars', label: 'Stars (30 days)', reverse: true, days: 30 },
{ field: 'stars', label: 'Stars (total)', reverse: true },
{
field: 'followers',
label: 'Followers (7 days)',
reverse: true,
days: 7,
},
{
field: 'followers',
label: 'Followers (30 days)',
reverse: true,
days: 30,
},
{ field: 'followers', label: 'Followers (total)', reverse: true },
{ field: 'title', label: 'Title' },
],
filters: [
{ field: 'language', emptyLabel: 'Any Language', multiple: true },
{ field: 'templates', emptyLabel: 'Any Template', multiple: true },
{ field: 'license', emptyLabel: 'Any License', multiple: true },
],
fields: [
{ name: 'language', label: 'Languages' },
{ name: 'templates', label: 'Templates' },
{ name: 'license', label: 'License' },
],
},
plugins: [
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [`gatsby-remark-prismjs`],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `projects`,
path: `${__dirname}/content/projects`,
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `pages`,
path: `${__dirname}/content/pages`,
},
},
`gatsby-plugin-emotion`,
],
}