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' export default class extends React.Component { propTypes () { return { route: React.PropTypes.object, } } render () { const pageLinks = [] // Sort pages. const sortedPages = sortBy(this.props.route.pages, (page) => access(page, 'data.date') ).reverse() sortedPages.forEach((page) => { const title = access(page, 'data.title') || page.path if (page.path && page.path !== '/' && access(page, 'file.extension') === '.md') { pageLinks.push(
  • {title}
  • ) } }) return (

    Written by {config.authorName} who lives and works in San Francisco building useful things. You should follow him on Twitter

    ) } }