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 (
READ THIS NEXT:

{nextPost.frontmatter.title}

{nextPost.excerpt}


) } } }) export default Component export const query = ` readNext { id excerpt(pruneLength: 200) frontmatter { title } } `