Just use frontmatter paths for paths + cleanups
This commit is contained in:
parent
4936e80940
commit
d2e2bc8df7
6 changed files with 33 additions and 63 deletions
|
|
@ -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>
|
||||
)
|
||||
},
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue