mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
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:
parent
b7564d8f94
commit
81864e1298
@ -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
|
||||
|
@ -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) + '/';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user