Corrected formatting of next and previous links in blog post template

This commit is contained in:
Josh Mcguigan 2018-07-06 04:39:34 -07:00
parent 33ec149396
commit 236582b5a1

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>
) )