blob: 1a40c5401fe477a4e61a52a9fb28d2e14b44c39b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import React from "react";
import Layout from "../components/layout";
import SEO from "../components/SEO";
function Entry({ children, location, title, description }) {
//const headingTitle = doc.headings[0] && doc.headings[0].value
//const title = doc.slug === '/' ? null : doc.title || headingTitle
//const description = doc.description || doc.excerpt
return (
<Layout location={location}>
<SEO title={title} description={description} />
{children}
</Layout>
);
}
export default Entry;
|