forked from padawanR0k/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
62 lines (61 loc) · 1.35 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
const path = require("path");
const pathPrefix = "/wiki";
const siteMetadata = {
title: "Wiki By r0k",
shortName: "r0k Wiki",
description:
"r0k의 개인위키",
imageUrl: "/logo.png",
siteUrl: "https://padawanr0k.github.io",
fbAppId: "",
};
module.exports = {
siteMetadata,
pathPrefix,
flags: {
DEV_SSR: true,
},
plugins: [
{
resolve: "gatsby-source-filesystem",
options: {
name: "content",
path: `./content`,
},
},
{
resolve: "gatsby-theme-primer-wiki",
options: {
nav: [
{
title: "Github",
url: "https://github.com/padawanR0k",
},
],
editUrl: "https://github.com/padawanR0k/wiki/blob/master/",
},
},
{
resolve: "gatsby-plugin-manifest",
options: {
name: siteMetadata.title,
short_name: siteMetadata.shortName,
start_url: pathPrefix,
background_color: `#f7f0eb`,
display: `standalone`,
icon: path.resolve(__dirname, "./static/logo.png"),
},
},
{
resolve: `gatsby-plugin-sitemap`,
},
{
resolve: "gatsby-plugin-robots-txt",
options: {
host: siteMetadata.siteUrl,
sitemap: `${siteMetadata.siteUrl}/sitemap/sitemap-index.xml`,
policy: [{ userAgent: "*", allow: "/" }],
},
},
],
};