Repository navigation
Expand file tree
/
Copy pathgatsby-config.js
More file actions
89 lines (88 loc) · 2.48 KB
/
Copy pathgatsby-config.js
File metadata and controls
89 lines (88 loc) · 2.48 KB
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
// Static microsites are not Gatsby pages, so the sitemap plugin cannot see them. List only the
// ones that are meant to be indexed (the PD research companion pages are noindex).
const STATIC_SITEMAP_PATHS = ['/projects/posterior-aware-pd-phenotyping-miccai/']
module.exports = {
siteMetadata: {
title: `Computational Visualization Center`,
description: `A cross-disciplinary effort to develop and improve the technologies for computational modeling, simulation, analysis, and visualization.`,
author: `cvc`,
siteUrl: `https://cvc-lab.github.io/`,
},
plugins: [
`gatsby-plugin-image`,
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Computational Visualization Center`,
short_name: `CVC`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#bf5700`,
display: `minimal-ui`,
icon: `src/favicons/icon-512.png`,
},
},
{
resolve: `gatsby-plugin-sitemap`,
options: {
excludes: [`/old-home/`, `/projects/healthcare-ai/`],
resolvePages: ({ allSitePage: { nodes } }) => [
...nodes,
...STATIC_SITEMAP_PATHS.map(path => ({ path })),
],
},
},
{
resolve: `gatsby-source-filesystem`,
options: {
name: `images`,
path: `${__dirname}/src/images`,
},
},
`gatsby-transformer-sharp`,
`gatsby-plugin-sharp`,
{
resolve: `gatsby-source-filesystem`,
options: {
name: `markdown`,
path: `${__dirname}/src/markdown`,
},
},
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-images`,
options: {
maxWidth: 800,
},
},
`gatsby-remark-copy-linked-files`,
{
resolve: `gatsby-remark-katex`,
options: {
strict: `ignore`,
},
},
{
resolve: `gatsby-remark-embed-video`,
options: {
related: false,
noIframeBorder: true,
loadingStrategy: `lazy`,
urlOverrides: [
{
id: `youtube`,
embedURL: videoId => `https://www.youtube-nocookie.com/embed/${videoId}`,
},
],
containerClass: `embedVideo-container`,
iframeId: false,
},
},
],
},
},
],
}