Upgrade branch to latest gatsby

This commit is contained in:
Kyle Mathews 2017-03-14 11:01:37 -07:00
parent 98e654bee7
commit 854294a799
13 changed files with 8871 additions and 202 deletions

View file

@ -3,6 +3,10 @@ import { rhythm } from 'utils/typography'
import { prefixLink } from 'gatsby-helpers'
import profilePic from './profile-pic.jpg'
// Import typefaces
import 'typeface-montserrat'
import 'typeface-merriweather'
class Bio extends React.Component {
render () {
return (
@ -13,7 +17,7 @@ class Bio extends React.Component {
>
<img
src={prefixLink(profilePic)}
alt={`author name`}
alt={`Kyle Mathews`}
style={{
float: 'left',
marginRight: rhythm(1/4),
@ -22,7 +26,7 @@ class Bio extends React.Component {
height: rhythm(2),
}}
/>
Written by <strong>TODO author name</strong> who lives and works in TODO San Francisco building useful things. <a href="https://twitter.com/kylemathews">You should follow him on Twitter</a>
Written by <strong>Kyle Mathews</strong> who lives and works in San Francisco building useful things. <a href="https://twitter.com/kylemathews">You should follow him on Twitter</a>
</p>
)
}

View file

@ -1,53 +0,0 @@
const React = require('react')
const { Link } = require('react-router')
const { rhythm, adjustFontSizeToMSValue } = require('utils/typography')
const Component = React.createClass({
render () {
const { nextPost } = this.props
if (!nextPost) {
return null
} else {
return (
<div>
<h6
style={{
...adjustFontSizeToMSValue(-0.5),
margin: 0,
letterSpacing: -0.25,
}}
>
READ THIS NEXT:
</h6>
<h3
style={{
margin: 0,
}}
>
<Link
to={nextPost.path}
>
{nextPost.frontmatter.title}
</Link>
</h3>
<p>{nextPost.excerpt}</p>
<hr />
</div>
)
}
}
})
export default Component
export const query = `
readNext {
id
excerpt(pruneLength: 200)
frontmatter {
title
}
}
`