Fix head reference from helmet

This commit is contained in:
Vincent Taverna 2016-11-23 20:13:32 -05:00 committed by GitHub
parent d0ef44d107
commit e477a106e6

View File

@ -11,7 +11,7 @@ module.exports = React.createClass({
}, },
render() { render() {
const {body, route} = this.props const {body, route} = this.props
const title = Helmet.rewind() const head = Helmet.rewind()
const font = <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,700&subset=latin,cyrillic' rel='stylesheet' type='text/css' /> const font = <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,700&subset=latin,cyrillic' rel='stylesheet' type='text/css' />
let css let css
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
@ -25,7 +25,7 @@ module.exports = React.createClass({
<meta httpEquiv="X-UA-Compatible" content="IE=edge" /> <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=5.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0 maximum-scale=5.0" />
<title> <title>
{ title } { head.title }
</title> </title>
{ font } { font }
{ css } { css }