Added Google Fonts support

This commit is contained in:
wpioneer 2018-01-21 18:54:33 +03:00
parent 69d2834bee
commit 9cf753b94b
3 changed files with 7 additions and 2 deletions

View File

@ -119,6 +119,12 @@ module.exports = {
resolve: 'gatsby-plugin-google-analytics',
options: { trackingId: '' }
},
{
resolve: `gatsby-plugin-google-fonts`,
options: {
fonts: [`roboto\:400,400i,500,700`]
}
},
{
resolve: 'gatsby-plugin-sitemap',
options: {

View File

@ -46,7 +46,7 @@
"react": "^15.6.1",
"react-helmet": "^5.2.0",
"react-disqus-comments": "^1.1.1",
"typeface-roboto": "latest"
"gatsby-plugin-google-fonts": "latest"
},
"devDependencies": {
"eslint": "^4.14.0",

View File

@ -1,6 +1,5 @@
import React from 'react';
import Helmet from 'react-helmet';
import 'typeface-roboto';
import '../assets/scss/init.scss';
class Layout extends React.Component {