{"size": 432, "ext": "js", "max_stars_repo_path": "src/templates/blog-post.js", "max_stars_repo_name": "gatsby-inc/gatsby-contentstack-example", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/templates/blog-post.js", "max_issues_repo_name": "gatsby-inc/gatsby-contentstack-example", "max_issues_repo_issues_event_min_datetime": "2021-08-05T18:56:11.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T15:19:45.000Z", "max_forks_repo_path": "src/templates/blog-post.js", "max_forks_repo_name": "gatsby-inc/gatsby-contentstack-example", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 13, "max_forks_count": null, "avg_line_length": 18.0, "max_line_length": 47, "alphanum_fraction": 0.6203703704}
import React from 'react'
import { graphql } from 'gatsby'

import Layout from '../components/layout'
import Post from '../components/post'

const BlogPost = ({ data }) => {
  return (
    <Layout>
      <Post {...data.post} />
    </Layout>
  )
}

export const blogPostQuery = graphql`
  query BlogPostByUrl($url: String!) {
    post: contentstackBlog(url: { eq: $url }) {
      ...PostDetails
    }
  }
`

export default BlogPost
