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:
parent
20bae1e066
commit
5e8f815561
@ -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
|
||||||
|
@ -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}>
|
||||||
|
Loading…
Reference in New Issue
Block a user