Merge pull request #108 from JoshMcguigan/master

Corrected formatting of next and previous links in blog post template
This commit is contained in:
Kyle Mathews 2018-07-09 14:37:08 -06:00 committed by GitHub
commit b57a91a8e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,21 +43,22 @@ class BlogPostTemplate extends React.Component {
padding: 0,
}}
>
{previous && (
<li>
<li>
{
previous &&
<Link to={previous.fields.slug} rel="prev">
{previous.frontmatter.title}
</Link>
</li>
)}
{next && (
<li>
}
</li>
<li>
{
next &&
<Link to={next.fields.slug} rel="next">
{next.frontmatter.title}
</Link>
</li>
)}
}
</li>
</ul>
</div>
)