import React from 'react' import moment from 'moment' import { RouteHandler, Link } from 'react-router' import DocumentTitle from 'react-document-title' import { link } from 'gatsby-helpers' import access from 'safe-access' import ReadNext from '../ReadNext' import { config } from 'config' import './style.sss' import '../../static/css/highlight.css' class BlogPost extends React.Component { render() { const {route} = this.props const post = route.page.data const home = (
All Articles
) return (
{ home }

{ post.title }

Published { moment(post.datePublished).format('D MMM YYYY') }

{ config.siteDescr }

{ config.authorName } on Twitter

); } } BlogPost.propTypes = { post: React.PropTypes.object.isRequired, pages: React.PropTypes.array, } export default BlogPost