Just use frontmatter paths for paths + cleanups

This commit is contained in:
Kyle Mathews 2017-07-04 10:49:13 -07:00
parent 4936e80940
commit d2e2bc8df7
6 changed files with 33 additions and 63 deletions

View file

@ -13,7 +13,7 @@ if (process.env.NODE_ENV === `production`) {
}
}
module.exports = React.createClass({
export default class HTML extends React.Component {
render() {
const head = Helmet.rewind()
let css
@ -38,9 +38,6 @@ module.exports = React.createClass({
{this.props.headComponents}
<TypographyStyle typography={typography} />
{css}
{head.title.toComponent()}
{head.meta.toComponent()}
{head.link.toComponent()}
</head>
<body>
<div
@ -51,5 +48,5 @@ module.exports = React.createClass({
</body>
</html>
)
},
})
}
}