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,
}}
>
{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>
)