diff --git a/config.toml b/config.toml index 6b2c6c4..129aac3 100644 --- a/config.toml +++ b/config.toml @@ -1,3 +1,3 @@ blogTitle = "My Awesome Blog" authorName = "Kyle Mathews" -ghPagesURLPrefix = "/gatsby-starter-blog" +linkPrefix = "/gatsby-starter-blog" diff --git a/html.jsx b/html.jsx index ee98186..082ec6c 100644 --- a/html.jsx +++ b/html.jsx @@ -1,21 +1,16 @@ import React from 'react'; import Typography from 'typography'; import DocumentTitle from 'react-document-title'; - -let TypographyStyle = new Typography().TypographyStyle; +import { link } from 'gatsby-helpers' +import { TypographyStyle } from 'utils/typography' export default class Html extends React.Component { render() { - let title, urlPrefix; + let title; title = DocumentTitle.rewind(); if (this.props.title) { title = this.props.title; } - if ((typeof __GH_PAGES__ !== "undefined" && __GH_PAGES__ !== null) && __GH_PAGES__) { - urlPrefix = this.props.config.ghPagesURLPrefix; - } else { - urlPrefix = ""; - } return ( @@ -46,7 +41,7 @@ export default class Html extends React.Component {
-