1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +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 Helmet from 'react-helmet'
import SEO from './SEO' import SEO from './SEO'
const Head = ({ meta, location }) => { const Head = ({ meta }) => {
const { title, tagline } = meta const { title, tagline } = meta
return ( return (
@ -13,10 +13,6 @@ const Head = ({ meta, location }) => {
titleTemplate={`%s // ${title.toLowerCase()} { ${tagline.toLowerCase()} }`} titleTemplate={`%s // ${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
> >
<meta name="apple-mobile-web-app-title" content={title.toLowerCase()} /> <meta name="apple-mobile-web-app-title" content={title.toLowerCase()} />
{location.hostname !== 'matthiaskretschmann.com' && (
<meta content="noindex,nofollow" name="robots" />
)}
</Helmet> </Helmet>
<SEO meta={meta} /> <SEO meta={meta} />
</Fragment> </Fragment>
@ -25,7 +21,6 @@ const Head = ({ meta, location }) => {
Head.propTypes = { Head.propTypes = {
meta: PropTypes.object.isRequired, meta: PropTypes.object.isRequired,
location: PropTypes.object.isRequired,
} }
export default Head export default Head

View File

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