Fix broken link in blog page links.

Summary:
This fixes an issue that would have arised once our number of blog posts passed 10, as the prev/next links in the footer were using the wrong path ("jest/", instead of "react-native/").

I also capped the number of recent blog posts to 10 in the sidebar.
Closes https://github.com/facebook/react-native/pull/9670

Differential Revision: D3819973

Pulled By: mkonicek

fbshipit-source-id: 321fe99654e10a4ad3e0815540518c8e9202385f
This commit is contained in:
Héctor Ramos 2016-09-05 14:23:54 -07:00 committed by Facebook Github Bot 5
parent b7564d8f94
commit 81864e1298
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ var BlogSidebar = React.createClass({
<div className="nav-docs-section">
<h3>Recent Posts</h3>
<ul>
{MetadataBlog.files.map(function(post) {
{MetadataBlog.files.slice(0,10).map(function(post) {
return (
<li key={post.path}>
<a

View File

@ -19,7 +19,7 @@ var Site = require('Site');
var BlogPageLayout = React.createClass({
getPageURL: function(page) {
var url = '/jest/blog/';
var url = '/react-native/blog/';
if (page > 0) {
url += 'page' + (page + 1) + '/';
}