-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-config.js
74 lines (74 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
const path = require("path");
const pathPrefix = "/";
const siteMetadata = {
title: "Obsidian Template for Gatsby Theme Primer Wiki",
shortName: "Wiki",
description:
"Another Obsidian template that use gatsby-theme-primer-wiki, Welcome to your new Obsidian Knowledge Base!",
twitterName: "theowenyoung",
imageUrl: "/graph-visualisation.jpg",
siteUrl: "https://demo-obsidian.owenyoung.com",
};
module.exports = {
siteMetadata,
pathPrefix,
flags: {
DEV_SSR: true,
},
plugins: [
{
resolve: "gatsby-source-filesystem",
options: {
name: "content",
path: `${__dirname}/..`,
ignore: [`**/\.*/**/*`],
},
},
{
resolve: "gatsby-theme-primer-wiki",
options: {
nav: [
{
title: "Github",
url: "https://github.com/theowenyoung/obsidian-template-gatsby-theme-primer-wiki/",
},
{
title: "Twitter",
url: "https://twitter.com/theowenyoung",
},
],
editUrl:
"https://github.com/theowenyoung/obsidian-template-gatsby-theme-primer-wiki/tree/main/",
},
},
{
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: "/" }],
},
},
{
resolve: `gatsby-plugin-google-gtag`,
options: {
// You can add multiple tracking ids and a pageview event will be fired for all of them.
trackingIds: [],
},
},
],
};