Corrected formatting of next and previous links in blog post template
This commit is contained in:
parent
33ec149396
commit
236582b5a1
1 changed files with 10 additions and 9 deletions
|
|
@ -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>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue