import React from 'react' import DocumentTitle from 'react-document-title' import { link } from 'gatsby-helpers' import { TypographyStyle } from 'utils/typography' export default class Html extends React.Component { propTypes () { return { body: React.PropTypes.string, favicon: React.PropTypes.string, title: React.PropTypes.string, } } render () { let title = DocumentTitle.rewind() if (this.props.title) { title = this.props.title } return (