import React from 'react' import { Link } from 'react-router' import get from 'lodash/get' import Helmet from 'react-helmet' import { rhythm } from 'utils/typography' import include from 'underscore.string/include' import Bio from 'components/Bio' class BlogIndex extends React.Component { render () { console.log(this.props) const pageLinks = [] const siteTitle = get(this, 'props.data.site.siteMetadata.title') const posts = get(this, 'props.data.allMarkdownRemark.edges') posts.forEach((post) => { if (post.node.path !== '/404/') { const title = get(post, 'node.frontmatter.title') || post.node.path pageLinks.push(