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, padding: 0,
}} }}
> >
{previous && ( <li>
<li> {
previous &&
<Link to={previous.fields.slug} rel="prev"> <Link to={previous.fields.slug} rel="prev">
{previous.frontmatter.title} {previous.frontmatter.title}
</Link> </Link>
</li> }
)} </li>
<li>
{next && ( {
<li> next &&
<Link to={next.fields.slug} rel="next"> <Link to={next.fields.slug} rel="next">
{next.frontmatter.title} {next.frontmatter.title}
</Link> </Link>
</li> }
)} </li>
</ul> </ul>
</div> </div>
) )