1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 09:13:19 +01:00

remove search engine block

This commit is contained in:
Matthias Kretschmann 2018-05-13 13:42:18 +02:00
parent 20bae1e066
commit 5e8f815561
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 2 additions and 7 deletions

View File

@ -3,7 +3,7 @@ import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import SEO from './SEO'
const Head = ({ meta, location }) => {
const Head = ({ meta }) => {
const { title, tagline } = meta
return (
@ -13,10 +13,6 @@ const Head = ({ meta, location }) => {
titleTemplate={`%s // ${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
>
<meta name="apple-mobile-web-app-title" content={title.toLowerCase()} />
{location.hostname !== 'matthiaskretschmann.com' && (
<meta content="noindex,nofollow" name="robots" />
)}
</Helmet>
<SEO meta={meta} />
</Fragment>
@ -25,7 +21,6 @@ const Head = ({ meta, location }) => {
Head.propTypes = {
meta: PropTypes.object.isRequired,
location: PropTypes.object.isRequired,
}
export default Head

View File

@ -27,7 +27,7 @@ const TemplateWrapper = ({ data, location, children }) => {
return (
<Fragment>
<Head meta={meta} location={location} />
<Head meta={meta} />
<Header meta={meta} isHomepage={isHomepage} />
<TransitionGroup component={Main} appear={true}>