import React from 'react'; import { Link, graphql } from 'gatsby'; import Bio from '../components/bio'; import Layout from '../components/layout'; import SEO from '../components/seo'; import { rhythm, scale } from '../utils/typography'; import Commento from '../components/commento'; class BlogPostTemplate extends React.Component { render() { const post = this.props.data.markdownRemark; const siteTitle = this.props.data.site.siteMetadata.title; const { previous, next } = this.props.pageContext; return (

{post.frontmatter.title}

{post.frontmatter.date}


Comments

); } } export default BlogPostTemplate; export const pageQuery = graphql` query BlogPostBySlug($slug: String!) { site { siteMetadata { title } } markdownRemark(fields: { slug: { eq: $slug } }) { id excerpt(pruneLength: 160) html frontmatter { title date(formatString: "MMMM DD, YYYY") description } } } `;