Basic config and layout for fetching, showing wp data with graphql

This commit is contained in:
Moris Zen
2018-06-25 10:53:58 +02:00
parent 57f717fec0
commit d145e29086
6 changed files with 111 additions and 1 deletions

18
src/components/header.js Normal file
View File

@@ -0,0 +1,18 @@
import React from 'react'
import Link from 'gatsby-link'
const Header = ({ siteTitle }) => (
<h1 style={{ margin: 0 }}>
<Link
to="/"
style={{
color: 'white',
textDecoration: 'none',
}}
>
{siteTitle}
</Link>
</h1>
)
export default Header