Swap locations for Prev/Next links.

Summary:
This reverts a change in #10660 that swapped the locations of the prev/next links across the entire site. It made sense in the blog, but not so much in the docs.
Closes https://github.com/facebook/react-native/pull/10753

Differential Revision: D4133501

Pulled By: lacker

fbshipit-source-id: 92ee35b1bd5575401e548f8290db3fb7cf0f56a1
This commit is contained in:
Héctor Ramos 2016-11-04 23:30:44 -07:00 committed by Facebook Github Bot
parent ac19276534
commit 1ceb2f7519
2 changed files with 5 additions and 5 deletions

View File

@ -46,10 +46,10 @@ var BlogPageLayout = React.createClass({
})
}
<div className="docs-prevnext">
{MetadataBlog.files.length > (page + 1) * perPage &&
<a className="docs-next" href={this.getPageURL(page + 1)}>&larr; Older posts</a>}
{page > 0 &&
<a className="docs-prev" href={this.getPageURL(page - 1)}>Newer posts &rarr;</a>}
<a className="docs-prev" href={this.getPageURL(page - 1)}>&larr; Newer posts</a>}
{MetadataBlog.files.length > (page + 1) * perPage &&
<a className="docs-next" href={this.getPageURL(page + 1)}>Older posts &rarr;</a>}
</div>
</section>
</Site>

View File

@ -745,11 +745,11 @@ h1:hover .hash-link, h2:hover .hash-link, h3:hover .hash-link, h4:hover .hash-li
}
.docs-prev {
float: right;
float: left;
}
.docs-next {
float: left;
float: right;
}
section.black content {