mirror of
https://github.com/mastermindzh/rickvanlieshout.com
synced 2025-07-26 20:22:32 +02:00
replace react-document-title with react-helmet
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react'
|
||||
import DocumentTitle from 'react-document-title'
|
||||
import Helmet from 'react-helmet'
|
||||
import SitePost from '../components/SitePost'
|
||||
import SitePage from '../components/SitePage'
|
||||
import { config } from 'config'
|
||||
@@ -19,11 +19,10 @@ class MarkdownWrapper extends React.Component {
|
||||
}
|
||||
|
||||
return (
|
||||
<DocumentTitle title={ `${post.title} - ${config.siteTitle}` }>
|
||||
<div>
|
||||
{ template }
|
||||
</div>
|
||||
</DocumentTitle>
|
||||
<div>
|
||||
<Helmet title={ `${post.title} - ${config.siteTitle}` }/>
|
||||
{ template }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -32,4 +31,4 @@ MarkdownWrapper.propTypes = {
|
||||
route: React.PropTypes.object,
|
||||
}
|
||||
|
||||
export default MarkdownWrapper
|
||||
export default MarkdownWrapper
|
||||
|
Reference in New Issue
Block a user