fix font bug

This commit is contained in:
Dawid Wysokiński 2020-08-02 11:36:43 +02:00
parent e14edc6f13
commit 6f65ff38de
3 changed files with 13 additions and 10 deletions

View File

@ -35,7 +35,12 @@ module.exports = {
icon: `src/images/logo.svg`, // This path is relative to the root of the site.
},
},
`gatsby-theme-material-ui`,
{
resolve: `gatsby-theme-material-ui`,
options: {
webFontsConfig: null,
},
},
`gatsby-plugin-sitemap`,
{
resolve: "gatsby-plugin-robots-txt",

View File

@ -3,6 +3,7 @@ import PropTypes from "prop-types"
import classnames from "classnames"
import { makeStyles } from "@material-ui/core/styles"
import { Helmet } from "react-helmet"
import { CssBaseline } from "@material-ui/core"
import Navbar from "./Navbar"
import Footer from "./Footer"
@ -26,6 +27,12 @@ const Layout = ({
return (
<Fragment>
<Helmet>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"
rel="stylesheet"
></link>
</Helmet>
{showNavbar && <Navbar {...navbarProps} />}
<main className={classnames(className, classes.main)}>{children}</main>
{showFooter && <Footer />}

File diff suppressed because one or more lines are too long