Update for 0.9
This commit is contained in:
parent
44fc7c7b40
commit
dc2746a93f
9 changed files with 52 additions and 50 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react'
|
||||
import { Link } from 'react-router'
|
||||
import { Container } from 'react-responsive-grid'
|
||||
import { link } from 'gatsby-helpers'
|
||||
import { prefixLink } from 'gatsby-helpers'
|
||||
import { rhythm, fontSizeToMS } from 'utils/typography'
|
||||
import { config } from 'config'
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ class Template extends React.Component {
|
|||
render () {
|
||||
const { location, children } = this.props
|
||||
let header
|
||||
if (location.pathname === link('/')) {
|
||||
if (location.pathname === prefixLink('/')) {
|
||||
header = (
|
||||
<h1
|
||||
style={{
|
||||
|
|
@ -25,7 +25,7 @@ class Template extends React.Component {
|
|||
textDecoration: 'none',
|
||||
color: 'inherit',
|
||||
}}
|
||||
to={link('/')}
|
||||
to={prefixLink('/')}
|
||||
>
|
||||
{config.blogTitle}
|
||||
</Link>
|
||||
|
|
@ -39,7 +39,7 @@ class Template extends React.Component {
|
|||
textDecoration: 'none',
|
||||
color: 'inherit',
|
||||
}}
|
||||
to={link('/')}
|
||||
to={prefixLink('/')}
|
||||
>
|
||||
{config.blogTitle}
|
||||
</Link>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import React from 'react'
|
|||
import { Link } from 'react-router'
|
||||
import sortBy from 'lodash/sortBy'
|
||||
import DocumentTitle from 'react-document-title'
|
||||
import { link } from 'gatsby-helpers'
|
||||
import { prefixLink } from 'gatsby-helpers'
|
||||
import { rhythm } from 'utils/typography'
|
||||
import access from 'safe-access'
|
||||
import { config } from 'config'
|
||||
|
|
@ -26,7 +26,7 @@ class BlogIndex extends React.Component {
|
|||
marginBottom: rhythm(1/4),
|
||||
}}
|
||||
>
|
||||
<Link to={link(page.path)}>{title}</Link>
|
||||
<Link to={prefixLink(page.path)}>{title}</Link>
|
||||
</li>
|
||||
)
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@ class BlogIndex extends React.Component {
|
|||
return (
|
||||
<DocumentTitle title={config.blogTitle}>
|
||||
<div>
|
||||
<Bio/>
|
||||
<Bio />
|
||||
<ul>
|
||||
{pageLinks}
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue