Add pathPrefix

This commit is contained in:
Kyle Mathews 2017-11-13 10:20:32 -08:00
parent 53c290251d
commit 696b75cb1f

View file

@ -1,16 +1,17 @@
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
title: "Gatsby Starter Blog", title: 'Gatsby Starter Blog',
author: "Kyle Mathews", author: 'Kyle Mathews',
description: "A starter blog demonstrating what Gatsby can do.", description: 'A starter blog demonstrating what Gatsby can do.',
siteUrl: "https://gatsbyjs.github.io/gatsby-starter-blog/", siteUrl: 'https://gatsbyjs.github.io/gatsby-starter-blog/',
}, },
pathPrefix: '/gatsby-starter-blog',
plugins: [ plugins: [
{ {
resolve: `gatsby-source-filesystem`, resolve: `gatsby-source-filesystem`,
options: { options: {
path: `${__dirname}/src/pages`, path: `${__dirname}/src/pages`,
name: "pages", name: 'pages',
}, },
}, },
{ {
@ -29,9 +30,9 @@ module.exports = {
wrapperStyle: `margin-bottom: 1.0725rem`, wrapperStyle: `margin-bottom: 1.0725rem`,
}, },
}, },
"gatsby-remark-prismjs", 'gatsby-remark-prismjs',
"gatsby-remark-copy-linked-files", 'gatsby-remark-copy-linked-files',
"gatsby-remark-smartypants", 'gatsby-remark-smartypants',
], ],
}, },
}, },
@ -47,9 +48,9 @@ module.exports = {
`gatsby-plugin-offline`, `gatsby-plugin-offline`,
`gatsby-plugin-react-helmet`, `gatsby-plugin-react-helmet`,
{ {
resolve: "gatsby-plugin-typography", resolve: 'gatsby-plugin-typography',
options: { options: {
pathToConfigModule: "src/utils/typography", pathToConfigModule: 'src/utils/typography',
}, },
}, },
], ],