diff --git a/components/SitePage/index.jsx b/components/SitePage/index.jsx index b7614cf..10f9152 100644 --- a/components/SitePage/index.jsx +++ b/components/SitePage/index.jsx @@ -2,7 +2,6 @@ import React from 'react' import moment from 'moment' import { RouteHandler, Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' -import DocumentTitle from 'react-document-title' import access from 'safe-access' import { config } from 'config' import SiteSidebar from '../SiteSidebar' @@ -38,4 +37,4 @@ SitePage.propTypes = { pages: React.PropTypes.array, } -export default SitePage \ No newline at end of file +export default SitePage diff --git a/components/SitePost/index.jsx b/components/SitePost/index.jsx index 4285c55..942f4f4 100644 --- a/components/SitePost/index.jsx +++ b/components/SitePost/index.jsx @@ -1,7 +1,6 @@ import React from 'react' import moment from 'moment' import { RouteHandler, Link } from 'react-router' -import DocumentTitle from 'react-document-title' import { prefixLink } from 'gatsby-helpers' import access from 'safe-access' import { config } from 'config' diff --git a/html.js b/html.js index e4a42b7..fbef134 100644 --- a/html.js +++ b/html.js @@ -1,5 +1,5 @@ import React from 'react' -import DocumentTitle from 'react-document-title' +import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' const BUILD_TIME = new Date().getTime() @@ -11,7 +11,7 @@ module.exports = React.createClass({ }, render() { const {body, route} = this.props - const title = DocumentTitle.rewind() + const {title} = Helmet.rewind() const font = let css if (process.env.NODE_ENV === 'production') { @@ -24,9 +24,7 @@ module.exports = React.createClass({ -