mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-15 01:25:28 +01:00
no need for head component
This commit is contained in:
parent
4606b31e30
commit
b705afb7e9
@ -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">
|
||||||
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user