diff --git a/config.toml b/config.toml
index b81a96b..6b2c6c4 100644
--- a/config.toml
+++ b/config.toml
@@ -1,2 +1,3 @@
blogTitle = "My Awesome Blog"
authorName = "Kyle Mathews"
+ghPagesURLPrefix = "/gatsby-starter-blog"
diff --git a/pages/_template.cjsx b/pages/_template.cjsx
index 65f5b54..4afd57a 100644
--- a/pages/_template.cjsx
+++ b/pages/_template.cjsx
@@ -4,13 +4,14 @@ Router = require 'react-router'
{Container, Grid, Breakpoint, Span} = require 'react-responsive-grid'
Typography = require 'typography'
require '../css/styles.css'
+{link} = require 'gatsby-helpers'
typography = Typography()
{rhythm, fontSizeToMS} = typography
module.exports = React.createClass
render: ->
- if @props.state.path is "/"
+ if @props.state.path is link('/')
header = (
{@props.config.blogTitle}
@@ -38,7 +39,7 @@ module.exports = React.createClass
textDecoration: 'none'
color: 'inherit'
}}
- to="/"
+ to={link('/')}
>
{@props.config.blogTitle}
diff --git a/pages/index.cjsx b/pages/index.cjsx
index 6f1ec3e..b2f13e4 100644
--- a/pages/index.cjsx
+++ b/pages/index.cjsx
@@ -1,7 +1,8 @@
React = require 'react'
Router = require 'react-router'
{RouteHandler, Link} = Router
-sortBy = require 'lodash/collection/sortby'
+sortBy = require 'lodash/collection/sortBy'
+{link} = require 'gatsby-helpers'
module.exports = React.createClass
statics:
@@ -13,7 +14,7 @@ module.exports = React.createClass
pageLinks = []
for page in sortBy(@props.pages, (page) -> page.data?.date).reverse()
title = page.data?.title || page.path
- if page.path isnt "/" and not page.data?.draft
+ if page.path isnt link("/") and not page.data?.draft
pageLinks.push (