import React from 'react' import Helmet from 'react-helmet' import Link from 'gatsby-link' import get from 'lodash/get' import Bio from '../components/Bio' import { rhythm, scale } from '../utils/typography' class BlogPostTemplate extends React.Component { render() { const post = this.props.data.markdownRemark const siteTitle = get(this.props, 'data.site.siteMetadata.title') return (

{post.frontmatter.title}

{post.frontmatter.date}


) } } export default BlogPostTemplate export const pageQuery = graphql` query BlogPostByPath($path: String!) { site { siteMetadata { title author } } markdownRemark(frontmatter: { path: { eq: $path } }) { id html frontmatter { title date(formatString: "MMMM DD, YYYY") } } } `