Skip to content

Commit 18e238f

Browse files
authored
Add subfont plugin (#21)
* update resumes, mark their link as canonical * fix key name * add escaped quotes * enclose links in angular brackets * add .devcontainer for codespaces * update dependencies * update portfolio to current info * add furmiliar to portfolio... ... update caniuse-lite * add gatsby subfont plugin
1 parent 8a71c1c commit 18e238f

File tree

3 files changed

+1650
-53
lines changed

3 files changed

+1650
-53
lines changed

gatsby-config.js

Lines changed: 30 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,31 @@ module.exports = {
22
siteMetadata: {
33
name: "Amorpheuz's Portfolio",
44
description: "A blog and portfolio site for Yash Dave",
5-
keywords: ["tech", "blog", "frontend developer", "data scientist", "frontend dev", "amorpheuz", "yash dave", "react dev", "javascript dev"],
5+
keywords: [
6+
"tech",
7+
"blog",
8+
"frontend developer",
9+
"data scientist",
10+
"frontend dev",
11+
"amorpheuz",
12+
"yash dave",
13+
"react dev",
14+
"javascript dev",
15+
],
616
siteUrl: "https://amorpheuz.dev",
717
siteImage: "images/favicon-128x128.png",
818
profileImage: `images/favicon-64x64.png`,
919
lang: `en`,
1020
config: {
11-
sidebarWidth: 280
12-
}
21+
sidebarWidth: 280,
22+
},
1323
},
1424
plugins: [
1525
{
1626
resolve: "@pauliescanlon/gatsby-theme-terminal",
1727
options: {
18-
source: ["posts", "projects"]
19-
}
28+
source: ["posts", "projects"],
29+
},
2030
},
2131
{
2232
resolve: `gatsby-plugin-canonical-urls`,
@@ -27,22 +37,25 @@ module.exports = {
2737
{
2838
resolve: `gatsby-plugin-sitemap`,
2939
options: {
30-
exclude: [
31-
`/404`,
32-
`/dummy-page/`,
33-
`/dev-404-page/`,
34-
`/404.html`
35-
],
40+
exclude: [`/404`, `/dummy-page/`, `/dev-404-page/`, `/404.html`],
3641
createLinkInHead: true,
37-
}
42+
},
3843
},
3944
{
40-
resolve: 'gatsby-plugin-robots-txt',
45+
resolve: "gatsby-plugin-robots-txt",
4146
options: {
4247
policy: [
43-
{userAgent: '*', disallow: ['/404','/dummy-page/'], allow: ['/']}
44-
]
45-
}
48+
{ userAgent: "*", disallow: ["/404", "/dummy-page/"], allow: ["/"] },
49+
],
50+
},
51+
},
52+
{
53+
resolve: `gatsby-plugin-subfont`,
54+
options: {
55+
silent: true,
56+
fallbacks: false,
57+
inlineFonts: true,
58+
},
4659
},
47-
]
60+
],
4861
};

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"gatsby-plugin-mdx": "^1.0.74",
1515
"gatsby-plugin-robots-txt": "^1.5.1",
1616
"gatsby-plugin-sitemap": "^2.4.5",
17+
"gatsby-plugin-subfont": "^3.7.1",
1718
"gatsby-source-filesystem": "^2.1.48",
1819
"react": "^16.12.0",
1920
"react-dom": "^16.12.0"
@@ -38,4 +39,4 @@
3839
"bugs": {
3940
"url": "https://github.com/Amorpheuz/amorpheuz.github.io/issues"
4041
}
41-
}
42+
}

0 commit comments

Comments
 (0)