React = require 'react' Router = require 'react-router' {Link} = Router prune = require 'underscore.string/prune' includes = require 'underscore.string/include' find = require 'lodash/collection/find' module.exports = React.createClass render: -> {rhythm, fontSizeToMS} = @props.typography readNext = @props.post.readNext if readNext? nextPost = find @props.pages, (page) -> includes page.path, readNext.slice(1, -1) unless nextPost