Upgrade branch to latest gatsby
This commit is contained in:
parent
98e654bee7
commit
854294a799
13 changed files with 8871 additions and 202 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
`
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue