Merge branch 'master' of github.com:gatsbyjs/gatsby-starter-blog

This commit is contained in:
Kyle Mathews 2017-09-21 17:27:22 -07:00
commit b43e467777
2 changed files with 12 additions and 1 deletions

5
.prettierrc Normal file
View file

@ -0,0 +1,5 @@
{
"trailingComma": "es5",
"semi": false,
"singleQuote": true
}

View file

@ -8,7 +8,13 @@ class Template extends React.Component {
render() {
const { location, children } = this.props
let header
if (location.pathname === '/') {
let rootPath = `/`
if (typeof __PREFIX_PATHS__ !== `undefined` && __PREFIX_PATHS__) {
rootPath = __PATH_PREFIX__ + `/`
}
if (location.pathname === rootPath) {
header = (
<h1
style={{