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,
|
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>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue