import React from 'react' import DocumentTitle from 'react-document-title' import { Link } from 'react-router' import get from 'lodash/get' import { rhythm, adjustFontSizeToMSValue } from 'utils/typography' import ReadNext from '../components/ReadNext' //import { query } from '../components/ReadNext' import Bio from 'components/Bio' const query = ` readNext { path excerpt(pruneLength: 200) frontmatter { title } } ` class BlogPostRoute extends React.Component { render () { const post = this.props.data.markdown const siteTitle = get(this.props, 'data.site.siteMetadata.title') return (

{post.frontmatter.title}

Posted TODO DATE


) } } export default BlogPostRoute export const pageQuery = ` query BlogPostByPath($path: String!) { site { siteMetadata { title author } } markdown(path: $path) { id bodyHTML frontmatter { ${query} title #date(formatString: "MMMM DD, YYYY") } } } `