Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration/gatsby#2 #6

Merged
merged 12 commits into from
Oct 28, 2018
Prev Previous commit
Next Next commit
moved render blocking fonts and added html lang attribute
  • Loading branch information
Tristan Schlötel committed Jul 23, 2018
commit bc3d741eae612da77e665c72c4f98680598b0dbf
6 changes: 4 additions & 2 deletions src/global-styles.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { injectGlobal } from 'styled-components';
import styledNormalize from 'styled-normalize';

injectGlobal`
${styledNormalize}

@import url("https://fonts.googleapis.com/css?family=Roboto:400,700");

*,
*:before,
*:after {
Expand Down Expand Up @@ -55,4 +57,4 @@ injectGlobal`
}
}
}
`;
`;
9 changes: 4 additions & 5 deletions src/html.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from "react";
import React from 'react';

import favicon from './favicon.ico';

module.exports = class HTML extends React.Component {
render() {
return (
<html {...this.props.htmlAttributes}>
<html lang="en" {...this.props.htmlAttributes}>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
Expand All @@ -15,7 +15,6 @@ module.exports = class HTML extends React.Component {
/>
{this.props.headComponents}
<link rel="shortcut icon" href={favicon} />
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700" rel="stylesheet"/>
</head>
<body {...this.props.bodyAttributes}>
{this.props.preBodyComponents}
Expand All @@ -27,6 +26,6 @@ module.exports = class HTML extends React.Component {
{this.props.postBodyComponents}
</body>
</html>
)
);
}
}
};