Skip to content

Commit c44c208

Browse files
committed
fix pathContext to pageContext
1 parent 759d4c5 commit c44c208

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/blog-post-layout.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { MDXProvider } from '@mdx-js/tag'
33
import Layout from './layout'
44
import Helmet from 'react-helmet'
55

6-
const BlogPostLayout = ({ children, pathContext }) => {
7-
const { title, author, date } = pathContext.frontmatter
6+
const BlogPostLayout = ({ children, pageContext }) => {
7+
const { title, author, date } = pageContext.frontmatter
88
return (
99
<Layout>
1010
<Helmet>
@@ -22,4 +22,4 @@ const BlogPostLayout = ({ children, pathContext }) => {
2222
)
2323
}
2424

25-
export default BlogPostLayout
25+
export default BlogPostLayout

0 commit comments

Comments
 (0)