Skip to content

Commit

Permalink
Fix broken link in blog page links.
Browse files Browse the repository at this point in the history
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 facebook#9670

Differential Revision: D3819973

Pulled By: mkonicek

fbshipit-source-id: 321fe99654e10a4ad3e0815540518c8e9202385f
  • Loading branch information
hramos authored and Facebook Github Bot 5 committed Sep 5, 2016
1 parent b7564d8 commit 81864e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/core/BlogSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion website/layout/BlogPageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) + '/';
}
Expand Down

0 comments on commit 81864e1

Please sign in to comment.