Skip to content

Commit

Permalink
Updated Google Font import
Browse files Browse the repository at this point in the history
  • Loading branch information
meghsohor committed Dec 6, 2020
1 parent 55aacce commit 7c16f1b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
12 changes: 11 additions & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ module.exports = {
],
},
},
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [
`Domine\:400,600,700`,
`Fira Code\:400,500`,
],
display: "swap",
},
},
{
resolve: "gatsby-plugin-mailchimp",
options: {
Expand All @@ -94,6 +104,6 @@ module.exports = {
},
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
`gatsby-plugin-offline`,
//`gatsby-plugin-offline`,
],
}
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"gatsby": "^2.25.3",
"gatsby-image": "^2.4.21",
"gatsby-plugin-catch-links": "^2.3.15",
"gatsby-plugin-google-fonts": "^1.0.1",
"gatsby-plugin-mailchimp": "^5.2.2",
"gatsby-plugin-manifest": "^2.5.2",
"gatsby-plugin-offline": "^3.3.3",
Expand Down
4 changes: 2 additions & 2 deletions src/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "../../node_modules/bootstrap/dist/css/bootstrap.min.css";
@import url("../../node_modules/font-awesome/css/font-awesome.min.css");
@import url("https://fonts.googleapis.com/css2?family=Domine:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;&display=swap");
/* @import url("https://fonts.googleapis.com/css2?family=Domine:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;&display=swap"); */

/*-------- Base Styles ---------*/
html,
Expand Down

0 comments on commit 7c16f1b

Please sign in to comment.