import React from 'react' import { Link } from 'react-router' import sortBy from 'lodash/sortBy' import DocumentTitle from 'react-document-title' import { link } from 'gatsby-helpers' import { rhythm } from 'utils/typography' import access from 'safe-access' import { config } from 'config' class BlogIndex extends React.Component { render () { const pageLinks = [] // Sort pages. const sortedPages = sortBy(this.props.route.pages, (page) => access(page, 'data.date') ).reverse() sortedPages.forEach((page) => { if (access(page, 'file.ext') === 'md') { const title = access(page, 'data.title') || page.path pageLinks.push(
Written by {config.authorName} who lives and works in San Francisco building useful things. You should follow him on Twitter