1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-15 09:35:21 +01:00

no need for head component

This commit is contained in:
Matthias Kretschmann 2018-09-27 22:28:34 +02:00
parent 4606b31e30
commit b705afb7e9
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 2 additions and 37 deletions

View File

@ -1,14 +1,14 @@
import React, { Fragment } from 'react' import React, { Fragment } from 'react'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import Container from './atoms/Container' import Container from './atoms/Container'
import Head from './molecules/Head' import Typekit from './atoms/Typekit'
import Header from './organisms/Header' import Header from './organisms/Header'
import Footer from './organisms/Footer' import Footer from './organisms/Footer'
import styles from './Layout.module.scss' import styles from './Layout.module.scss'
const Layout = ({ children }) => ( const Layout = ({ children }) => (
<Fragment> <Fragment>
<Head /> <Typekit />
<Header /> <Header />
<main className={styles.document} id="document"> <main className={styles.document} id="document">

View File

@ -1,35 +0,0 @@
import React, { Fragment } from 'react'
import Helmet from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import Typekit from '../atoms/Typekit'
const query = graphql`
query {
contentYaml {
title
tagline
}
}
`
const Head = () => (
<StaticQuery
query={query}
render={data => {
const { title } = data.contentYaml
return (
<Fragment>
<Helmet>
<meta name="apple-mobile-web-app-title" content={title} />
<meta name="theme-color" content="#e7eef4" />
</Helmet>
<Typekit />
</Fragment>
)
}}
/>
)
export default Head