-
Notifications
You must be signed in to change notification settings - Fork 960
Expand file tree
/
Copy pathLayout.js
More file actions
44 lines (40 loc) · 1.07 KB
/
Layout.js
File metadata and controls
44 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import React from 'react'
import Helmet from 'react-helmet'
import { StaticQuery, graphql } from 'gatsby'
import Navbar from '../components/Navbar'
import Footer from '../components/Footer'
import './all.sass'
const TemplateWrapper = ({ children }) => (
<StaticQuery
query={graphql`
query HeadingQuery {
site {
siteMetadata {
title
description
}
}
}
`}
render={data => (
<div>
<Helmet>
<html lang="en" />
<title>{data.site.siteMetadata.title}</title>
<meta
name="description"
content={data.site.siteMetadata.description}
/>
<meta property="og:type" content="business.business" />
<meta property="og:title" content={data.site.siteMetadata.title} />
<meta property="og:url" content="/" />
<meta property="og:image" content="/img/og-image.jpg" />
</Helmet>
<Navbar />
<div>{children}</div>
<Footer />
</div>
)}
/>
)
export default TemplateWrapper