Use Gatby's new link prefixing format.

This commit is contained in:
Kyle Mathews 2015-11-21 16:59:25 -08:00
parent 1043f18f0c
commit 8f1b58c801
3 changed files with 8 additions and 13 deletions

View file

@ -21,7 +21,7 @@ export default class extends React.Component {
for (i = 0, len = ref.length; i < len; i++) {
page = ref[i];
title = ((ref1 = page.data) != null ? ref1.title : void 0) || page.path;
if (page.path !== link("/") && !((ref2 = page.data) != null ? ref2.draft : void 0)) {
if (page.path !== "/" && !((ref2 = page.data) != null ? ref2.draft : void 0)) {
pageLinks.push(
<li
key={page.path}
@ -29,7 +29,7 @@ export default class extends React.Component {
marginBottom: rhythm(1/4)
}}
>
<Link to={page.path}>{title}</Link>
<Link to={link(page.path)}>{title}</Link>
</li>
);
}
@ -61,4 +61,4 @@ export default class extends React.Component {
</DocumentTitle>
);
}
}
}